AUTH-2785 service token flag fix and logger fix

This commit is contained in:
Dalton
2020-06-08 17:01:48 -05:00
parent f8638839c0
commit 0d87279b2f
6 changed files with 35 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ package cliutil
import (
"fmt"
"github.com/cloudflare/cloudflared/logger"
"gopkg.in/urfave/cli.v2"
)
@@ -34,6 +35,7 @@ func ErrorHandler(actionFunc cli.ActionFunc) cli.ActionFunc {
cli.HandleExitCoder(err)
err = cli.Exit(err.Error(), 1)
}
logger.SharedWriteManager.Shutdown()
return err
}
}