Better logging for agents configuration

This commit is contained in:
Deluan
2021-11-25 15:48:32 -05:00
parent 913a4cf546
commit 20cdd38fc4
3 changed files with 22 additions and 10 deletions
+17 -9
View File
@@ -90,15 +90,23 @@ func checkFfmpegInstallation() {
}
func checkExternalCredentials() {
if !conf.Server.LastFM.Enabled {
log.Info("Last.FM integration is DISABLED")
} else {
log.Debug("Last.FM integration is ENABLED")
}
if conf.Server.EnableExternalServices {
if !conf.Server.LastFM.Enabled {
log.Info("Last.FM integration is DISABLED")
} else {
log.Debug("Last.FM integration is ENABLED")
}
if conf.Server.Spotify.ID == "" || conf.Server.Spotify.Secret == "" {
log.Info("Spotify integration is not enabled: missing ID/Secret")
} else {
log.Debug("Spotify integration is ENABLED")
if !conf.Server.ListenBrainz.Enabled {
log.Info("ListenBrainz integration is DISABLED")
} else {
log.Debug("ListenBrainz integration is ENABLED")
}
if conf.Server.Spotify.ID == "" || conf.Server.Spotify.Secret == "" {
log.Info("Spotify integration is not enabled: missing ID/Secret")
} else {
log.Debug("Spotify integration is ENABLED")
}
}
}