From 75f6362a90bbbb826ced7498abe7fddcd19ffb2b Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 25 Sep 2025 17:18:28 -0700 Subject: [PATCH] Add logging to config --- websocket/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/websocket/config.go b/websocket/config.go index 6803e81..1d821b6 100644 --- a/websocket/config.go +++ b/websocket/config.go @@ -6,6 +6,8 @@ import ( "os" "path/filepath" "runtime" + + "github.com/fosrl/newt/logger" ) func getConfigPath(clientType string) string { @@ -34,6 +36,7 @@ func getConfigPath(clientType string) string { func (c *Client) loadConfig() error { if c.config.ID != "" && c.config.Secret != "" && c.config.Endpoint != "" { + logger.Debug("Config already provided, skipping loading from file") return nil } @@ -65,6 +68,9 @@ func (c *Client) loadConfig() error { c.baseURL = config.Endpoint } + logger.Debug("Loaded config from %s", configPath) + logger.Debug("Config: %+v", c.config) + return nil }