Skip to content

Commit

Permalink
Merge pull request #291 from shogo82148/fix-error-log-switch
Browse files Browse the repository at this point in the history
Fix outputting error logs
  • Loading branch information
shogo82148 committed Feb 26, 2024
2 parents 0a042d6 + 15ebaf5 commit 5170fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logging.go
Expand Up @@ -162,7 +162,7 @@ func LogError(ctx context.Context, msg string, keyvals ...interface{}) {
switch logger := l.(type) {
case ContextLogAdapter:
logger.ErrorContext(ctx, msg, keyvals...)
case WarningLogAdapter:
case LogAdapter:
logger.Error(msg, keyvals...)
}
}
Expand Down
2 changes: 1 addition & 1 deletion service.go
Expand Up @@ -215,7 +215,7 @@ func (service *Service) LogError(msg string, keyvals ...interface{}) {
switch logger := l.(type) {
case ContextLogAdapter:
logger.ErrorContext(ctx, msg, keyvals...)
case WarningLogAdapter:
case LogAdapter:
logger.Error(msg, keyvals...)
}
}
Expand Down

0 comments on commit 5170fe7

Please sign in to comment.