mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-01-22 08:14:08 +00:00
fix: only debug logging when specified
This commit is contained in:
parent
8d0757b553
commit
15d8996b48
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ func Start(args []string) {
|
||||||
err := app.getConfig(args)
|
err := app.getConfig(args)
|
||||||
|
|
||||||
// if debug logging, make real debug logger
|
// if debug logging, make real debug logger
|
||||||
app.debugLogger = log.New(os.Stdout, "debug: ", 0)
|
if app.config.debugLogging != nil && *app.config.debugLogging {
|
||||||
|
app.debugLogger = log.New(os.Stdout, "debug: ", 0)
|
||||||
|
}
|
||||||
|
|
||||||
// deal with config err (after logger re-init)
|
// deal with config err (after logger re-init)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue