MannLabs / alphadia

modular & open DIA search
https://alphadia.readthedocs.io
Apache License 2.0
41 stars 3 forks source link

Fix logger issue #227

Closed mschwoer closed 3 months ago

mschwoer commented 3 months ago

0:00:00.029638 ERROR: module 'logging' has no attribute 'getLevelNamesMapping'



`getLevelNamesMapping` is available for python >=3.11 only.

 Note that I also changed the behaviour: if the requested log level is not available, an error is raised. Alternatively, one could just continue with the default level.

- exit on error with a nonzero exit code
- fix a little flaw that filenames in log output had a trailing dot