ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Improved Python logging #732

Closed tparchambault closed 1 year ago

tparchambault commented 1 year ago

Several improvements to Python logging.

No v flag specified is warn, -v is info, -vv is debug.

Closes #668

tparchambault commented 1 year ago

The default log location is ~/.local/share/fapolicy-analyzer/fapolicy-analyzer.log. Use the -h option to see the supported loglevels.

The verbose output to stderr is now INFO where previously it was DEBUG and is not configurable.

Only a small subset of the existing logging.debug() statements were converted to logging.info()

tparchambault commented 1 year ago

I've got to move my logging.warn()s to logging.warning()s. The former is deprecated.