From fc36664e8e824a3f4c540b30108f5ae8e24bec44 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 19 Jan 2024 08:36:28 -0300 Subject: [PATCH] fix: log when files are being included --- sshconfig/parse.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshconfig/parse.go b/sshconfig/parse.go index f7543d4..8c577f2 100644 --- a/sshconfig/parse.go +++ b/sshconfig/parse.go @@ -13,6 +13,7 @@ import ( "sync" "time" + "github.com/charmbracelet/log" "github.com/charmbracelet/wishlist" "github.com/charmbracelet/wishlist/home" "github.com/gobwas/glob" @@ -229,6 +230,7 @@ func parseInternal(r io.Reader) (*hostinfoMap, error) { if err != nil { return nil, err //nolint: wrapcheck } + log.Info("Using configuration file (via includes)", "path", path) included, err := parseFileInternal(path) if err != nil { if errors.Is(err, os.ErrNotExist) {