|
|
@ -126,8 +126,12 @@ func initLogging() { |
|
|
|
log.SetLevel(log.InfoLevel) |
|
|
|
case verbosity == 2: |
|
|
|
log.SetLevel(log.DebugLevel) |
|
|
|
case verbosity >= 3: |
|
|
|
case verbosity == 3: |
|
|
|
log.SetLevel(log.TraceLevel) |
|
|
|
case verbosity > 3: |
|
|
|
log.SetLevel(log.TraceLevel) |
|
|
|
// Add overhead to include the caller that sourced the error
|
|
|
|
log.SetReportCaller(true) |
|
|
|
default: |
|
|
|
log.SetLevel(log.ErrorLevel) |
|
|
|
} |
|
|
|