arup-group / elara

Command line utility for processing MATSim events output files.
MIT License
13 stars 4 forks source link

Setting Logging Level to DEBUG includes Matplotlib logging #150

Closed andkay closed 1 year ago

andkay commented 2 years ago

Setting Elara's verbosity to true runs the program with logging level DEBUG.

In some environments, this causes extraneous outputs from 3rd party libraries. One potential reason for this is that the verbosity is set at for the logging module, rather than the elara's own object loggers.

https://github.com/arup-group/elara/blob/dc94c92ebc4b62466a17cee1b435dc04bd0af65a/elara/main.py#L622

However, this behaviour is also not universal which contradicts the above hypothesis.

Example:

...
10-19 16:57 matplotlib.font_manager DEBUG findfont: score(<Font 'Khmer Sangam MN' (Khmer Sangam MN.ttf) normal normal 400 normal>) = 10.05
10-19 16:57 matplotlib.font_manager DEBUG findfont: score(<Font 'Shree Devanagari 714' (Shree714.ttc) normal normal 400 normal>) = 10.05
10-19 16:57 matplotlib.font_manager DEBUG findfont: score(<Font 'Hiragino Sans' (ヒラギノ角ゴシック W9.ttc) normal normal 900 normal>) = 10.525
10-19 16:57 matplotlib.font_manager DEBUG findfont: score(<Font 'American Typewriter' (AmericanTypewriter.ttc) normal normal 400 normal>) = 10.05
...