aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/service.go')
-rw-r--r--internal/admin/service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/admin/service.go b/internal/admin/service.go
index f3d705c..6c969ef 100644
--- a/internal/admin/service.go
+++ b/internal/admin/service.go
@@ -34,10 +34,10 @@ func (s *Servicer) Reload() {
s.Conf = tmpConfig
slog.Debug("config base after copy", "path", s.Conf.basePath)
if err := s.InitServer(); err != nil {
- slog.Error("couldn't init server with new config, falling back", err)
+ slog.Error("couldn't init server with new config, falling back", slog.Any("error", err))
s.Conf = &oldConfig
if err := s.InitServer(); err != nil {
- slog.Error("couldn't init server with old config, falling back", err)
+ slog.Error("couldn't init server with old config, falling back", slog.Any("error", err))
panic("new and old config couldn't init server, no available config to run")
}
slog.Error("server has fallen back to old config but it lives in memory only, in fragile state")