aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2023-02-27 00:43:45 -0500
committerpg9182 <96569817+pg9182@users.noreply.github.com>2023-03-04 00:49:32 -0500
commit386bef353984f435927461e6110ada87678369e3 (patch)
tree7d0fbbccaa28c197baaf4504d4a08c08b09d2abd
parentf6f6703a6461e14d8e25f55ab846c18fd39adbe3 (diff)
downloadAtlas-386bef353984f435927461e6110ada87678369e3.tar.gz
Atlas-386bef353984f435927461e6110ada87678369e3.zip
pkg/atlas: Improve EAX and Origin client logging
-rw-r--r--pkg/atlas/server.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go
index 7475536..043fa2c 100644
--- a/pkg/atlas/server.go
+++ b/pkg/atlas/server.go
@@ -517,7 +517,9 @@ func configureOrigin(c *Config, l zerolog.Logger) (*origin.AuthMgr, error) {
}
}
if err != nil {
- l.Err(err).Msg("origin auth error")
+ l.Err(err).Msg("origin auth error; using old token")
+ } else {
+ l.Info().Msg("got new origin token")
}
},
}
@@ -615,7 +617,9 @@ func configureEAX(c *Config, l zerolog.Logger) (*eax.Client, error) {
AutoUpdateBackoff: expbackoff,
AutoUpdateHook: func(ver string, err error) {
if err != nil {
- l.Err(err).Msg("eax update error")
+ l.Err(err).Str("eax_client_version", ver).Msg("eax update error, using old version")
+ } else {
+ l.Info().Str("eax_client_version", ver).Msg("updated eax client version")
}
},
}