fix(idp): Discord ログイン無効化の理由を error レベルで出力する

This commit is contained in:
sylph committed 2026-11-01 21:25:41 +09:00
1 parent 35b11ed975
commit a5f57a6e2a
1 file changed
+2 -1
+2 -1
View File
@@ -157,7 +157,8 @@ func NewService(opts ...Option) Service {
if options.Config.IDP.IdentityManager == "ldap" {
dh, err := newDiscordHandler(svc, options, managers, bs.Config().AuthorizationEndpointURI.Path)
if err != nil {
logger.Warn().Err(err).Msg("discord login is disabled")
// Error level: the default log level is error, a warning would be invisible.
logger.Error().Err(err).Msg("discord login is disabled")
} else {
svc.discord = dh
}