summaryrefslogtreecommitdiffstats
path: root/mattermost.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2016-10-20 21:17:47 +0100
committerCorey Hulen <corey@hulen.com>2016-10-20 13:17:47 -0700
commitd13ba8c55c981978f3b962c6991f478b36bf8a8b (patch)
tree7b84a136673257ad60cafa151c6a2543dc6cd3c1 /mattermost.go
parent319ae6b38cf2c3647ae2f92f0b4c83fe4b378c65 (diff)
downloadchat-d13ba8c55c981978f3b962c6991f478b36bf8a8b.tar.gz
chat-d13ba8c55c981978f3b962c6991f478b36bf8a8b.tar.bz2
chat-d13ba8c55c981978f3b962c6991f478b36bf8a8b.zip
Flush log and exit after CLI Slack Import. (#4286)
Some log messages were previously being lost at the very end of the Slack import via CLI process, due to not flushing the logs after completing.
Diffstat (limited to 'mattermost.go')
-rw-r--r--mattermost.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/mattermost.go b/mattermost.go
index 7b9f6c0c1..6d80f19e7 100644
--- a/mattermost.go
+++ b/mattermost.go
@@ -1473,6 +1473,8 @@ func cmdSlackImport() {
fmt.Fprintln(os.Stdout, "Running Slack Import. This may take a long time for large teams or teams with many messages.")
api.SlackImport(fileReader, fileInfo.Size(), team.Id)
+
+ flushLogAndExit(0)
}
}