grafana/pdc-agent

consolidate log level flags

dafydd-t opened this issue · 0 comments

We currently have log.level and log-level flags. log.level (error|warn|info|debug) sets the log level on the go program, and log-level (1|2|3) sets the verbosity on the openssh binary (maps to v|vv|vvv in openssh). This is confusing.

I propose we consolidate these to use just log.level, with the following mapping:

go log level ssh log level
error 0 (-v not set)
warn 0 (-v not set)
info 0 (-v not set)
debug 3 (-vvv)