From d13ba8c55c981978f3b962c6991f478b36bf8a8b Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 20 Oct 2016 21:17:47 +0100 Subject: 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. --- mattermost.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mattermost.go') 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) } } -- cgit v1.2.3-1-g7c22