Skip to content

Commit cd39cbe

Browse files
committed
(feat) also enable scan error logging when enabling debug logging
should help debug #291
1 parent 12d5c0e commit cd39cbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/root.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ var rootCmd = &cobra.Command{
3636
}
3737

3838
if opts.Logging.Debug && !opts.Logging.Silence {
39+
// also enable logging of scan errors. often this is _actually_ what
40+
// people want when they enable debug logging.
41+
opts.Logging.LogScanErrors = true
3942
log.EnableDebug()
40-
log.Debug("debug logging enabled")
43+
log.Debug("debug logging enabled. this also enabled --log-scan-errors")
4144
}
4245

4346
if enableProfiling {

0 commit comments

Comments
 (0)