fix(api): don't crash requests after failing to unmarshal tokens (fixes #9909) (#9912)

Unclear why this would happen, but apparently it does?
This commit is contained in:
Jakob Borg
2025-01-09 21:47:10 +01:00
committed by GitHub
parent 0c1df81ee9
commit ab20c16982
2 changed files with 9 additions and 5 deletions
+3
View File
@@ -402,6 +402,9 @@ func (s *service) Serve(ctx context.Context) error {
// care about we log ourselves from the handlers.
ErrorLog: log.New(io.Discard, "", 0),
}
if shouldDebugHTTP() {
srv.ErrorLog = log.Default()
}
l.Infoln("GUI and API listening on", listener.Addr())
l.Infoln("Access the GUI via the following URL:", guiCfg.URL())