From 48d0fcb01d805fcaeff1e916f328c6f6d175d322 Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Tue, 18 Jun 2024 17:22:06 +0100 Subject: [PATCH] Add Debug log level message for proxy template loading (#43164) --- lib/tbot/service_ssh_multiplexer.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/tbot/service_ssh_multiplexer.go b/lib/tbot/service_ssh_multiplexer.go index e661a008c701a..e4cb6d115b87b 100644 --- a/lib/tbot/service_ssh_multiplexer.go +++ b/lib/tbot/service_ssh_multiplexer.go @@ -237,6 +237,18 @@ func (s *SSHMultiplexerService) setup(ctx context.Context) ( if err != nil { return nil, nil, "", nil, trace.Wrap(err, "loading proxy templates") } + for _, t := range tshConfig.ProxyTemplates { + s.log.DebugContext( + ctx, + "Loaded proxy template", + "template", t.Template, + "proxy", t.Proxy, + "host", t.Host, + "cluster", t.Cluster, + "query", t.Query, + "search", t.Search, + ) + } } // Generate our initial identity and write the artifacts to the destination.