fix(idp): Discord ログイン無効化の理由を error レベルで出力する
This commit is contained in:
1 parent
35b11ed975
commit
a5f57a6e2a
1 file changed
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user