summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2016-10-31 13:02:54 +0000
committerChristopher Speller <crspeller@gmail.com>2016-10-31 09:02:54 -0400
commit54277eae28f42ee328a87c65dfdb79b062100a2b (patch)
treeaa80ef1754c8908b6db2b5aed5ff7fa8663f6ccc
parent316b155a42a4d00fb835438ce7e0401a64e59add (diff)
downloadchat-54277eae28f42ee328a87c65dfdb79b062100a2b.tar.gz
chat-54277eae28f42ee328a87c65dfdb79b062100a2b.tar.bz2
chat-54277eae28f42ee328a87c65dfdb79b062100a2b.zip
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.
-rw-r--r--api/slackimport.go2
-rw-r--r--i18n/en.json4
2 files changed, 3 insertions, 3 deletions
diff --git a/api/slackimport.go b/api/slackimport.go
index b9dab98ba..af27b0d30 100644
--- a/api/slackimport.go
+++ b/api/slackimport.go
@@ -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 {
diff --git a/i18n/en.json b/i18n/en.json
index e6b444370..a7e17cdf5 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -1532,8 +1532,8 @@
"translation": "Failed to import: {{.DisplayName}}\r\n"
},
{
- "id": "api.slackimport.slack_add_channels.import_failed.debug",
- "translation": "Failed to import: %s"
+ "id": "api.slackimport.slack_add_channels.import_failed.warn",
+ "translation": "Slack Importer: Failed to import channel: %s"
},
{
"id": "api.slackimport.slack_add_channels.merge",