Skip to content

Commit

Permalink
refactor(i18n): use Infof() instead of Warn() to simplify error m…
Browse files Browse the repository at this point in the history
…essage
  • Loading branch information
cayter committed Aug 6, 2020
1 parent 64f6ca5 commit efe50b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (i *I18n) T(key string, args ...interface{}) string {
localizer := i18n.NewLocalizer(i.bundle, locale)
msg, err := localizer.Localize(&i18n.LocalizeConfig{MessageID: key, TemplateData: data})
if err != nil {
i.logger.Warn(err)
i.logger.Infof("[I18N] %s", err.Error())
return ""
}

Expand Down

0 comments on commit efe50b1

Please sign in to comment.