Warning in log when a Slack channel import fails. (#4262)
Previously it just wrote to the summary, and as a debug level message in the log, so if you had the log level set to warn, you might never find out that importing a channel failed.
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
316b155a42
Коммит
54277eae28
@@ -312,7 +312,7 @@ func SlackAddChannels(teamId string, slackchannels []SlackChannel, posts map[str
|
||||
if mChannel == nil {
|
||||
// Maybe it already exists?
|
||||
if result := <-Srv.Store.Channel().GetByName(teamId, sChannel.Name); result.Err != nil {
|
||||
l4g.Debug(utils.T("api.slackimport.slack_add_channels.import_failed.debug"), newChannel.DisplayName)
|
||||
l4g.Warn(utils.T("api.slackimport.slack_add_channels.import_failed.warn"), newChannel.DisplayName)
|
||||
log.WriteString(utils.T("api.slackimport.slack_add_channels.import_failed", map[string]interface{}{"DisplayName": newChannel.DisplayName}))
|
||||
continue
|
||||
} else {
|
||||
|
||||
Ссылка в новой задаче
Block a user