From 4b564d7f4a770f582281fe062434bfc9088da470 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 4 Sep 2024 20:03:09 +0100 Subject: [PATCH] bump mediabrowser again, log authed account name --- go.mod | 2 +- go.sum | 2 ++ logmessages/logmessages.go | 1 + main.go | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 0dc489d..0ffe09a 100644 --- a/go.mod +++ b/go.mod @@ -43,7 +43,7 @@ require ( github.com/hrfee/jfa-go/logger v0.0.0-20240829123003-65662c57bc2a github.com/hrfee/jfa-go/logmessages v0.0.0-20240829123003-65662c57bc2a github.com/hrfee/jfa-go/ombi v0.0.0-20240829123003-65662c57bc2a - github.com/hrfee/mediabrowser v0.3.22 + github.com/hrfee/mediabrowser v0.3.23 github.com/itchyny/timefmt-go v0.1.6 github.com/lithammer/shortuuid/v3 v3.0.7 github.com/mailgun/mailgun-go/v4 v4.15.0 diff --git a/go.sum b/go.sum index bfe6ca1..38ca1f4 100644 --- a/go.sum +++ b/go.sum @@ -212,6 +212,8 @@ github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hrfee/mediabrowser v0.3.22 h1:+BiSE+GlzTZEazyuLvLyhI3nRbrR8DnocgAHEusBh14= github.com/hrfee/mediabrowser v0.3.22/go.mod h1:PnHZbdxmbv1wCVdAQyM7nwPwpVj9fdKx2EcET7sAk+U= +github.com/hrfee/mediabrowser v0.3.23 h1:y1Sd4pSpFCWPTlp7exlPhCYIa3jN7UxxsBEHjVQJrI4= +github.com/hrfee/mediabrowser v0.3.23/go.mod h1:PnHZbdxmbv1wCVdAQyM7nwPwpVj9fdKx2EcET7sAk+U= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itchyny/timefmt-go v0.1.6 h1:ia3s54iciXDdzWzwaVKXZPbiXzxxnv1SPGFfM/myJ5Q= github.com/itchyny/timefmt-go v0.1.6/go.mod h1:RRDZYC5s9ErkjQvTvvU7keJjxUYzIISJGxm9/mAERQg= diff --git a/logmessages/logmessages.go b/logmessages/logmessages.go index 4727250..f2b9ea2 100644 --- a/logmessages/logmessages.go +++ b/logmessages/logmessages.go @@ -54,6 +54,7 @@ const ( UsingLocalAuth = "Using local username/pw authentication (NOT RECOMMENDED)" AuthJellyfin = "Authenticated with " + Jellyfin + " @ \"%s\"" + AsUser = "As user \"%s\"" FailedAuthJellyfin = "Failed to authenticate with " + Jellyfin + " @ \"%s\" (code %d): %v" FailedAuth = "Failed to authenticate with %s @ \"%s\" (code %d): %v" diff --git a/main.go b/main.go index 7685239..d9c2596 100644 --- a/main.go +++ b/main.go @@ -446,6 +446,7 @@ func start(asDaemon, firstCall bool) { app.err.Fatalf(lm.FailedAuthJellyfin, server, status, err) } app.info.Printf(lm.AuthJellyfin, server) + app.debug.Printf(lm.AsUser, app.jf.Username) runMigrations(app)