Skip to content

verbosity and configuration flags

Charles Francoise requested to merge feature/verbosity-flags into develop

See https://gitlab.com/pantomath-io/pantomath-agent/merge_requests/13

This option makes it easier to set specific verbosity.

Command-line verbosity level translates directly to log level:

CLI verbosity Log level
0 no logs
1 (default) WARNING
2 INFO
3 DEBUG

The new usage is:

pantomath               # verbosity: 1
pantomath -q            # verbosity: 0
pantomath --quiet       # verbosity: 0
pantomath -v            # verbosity: 2
pantomath --verbose     # verbosity: 2
pantomath --verbose=n   # verbosity: n

Also adds a way to specify an arbitrary configuration file using:

pantomath --conf="path/to/my/conf.yaml"

Known regression:

"Debug" mode is unavailable for now. Following Slack discussions, we need to clarify if there is such a thing as a "full debug" mode, or if we want to have a set of options and flags to make debug easier, which will become useful features in time (such as a -no-ssl flag for users without a certificate).

Merge request reports