Closed Christian-B closed 2 years ago
To make sure the FormatAdapter.isEnabledFor(level) works
We set logging.basicConfig to the cfg default level not 0
Creating _BraceMessage only done if log is of interest.
level >= FormatAdapter.__repeat_at_end could be called twice but only if repeat_level < enabled level.
Doing it this way means that if we later log to db we can also log to db if gate passes.
Now part of https://github.com/SpiNNakerManchester/SpiNNUtils/pull/174
To make sure the FormatAdapter.isEnabledFor(level) works
We set logging.basicConfig to the cfg default level not 0
Creating _BraceMessage only done if log is of interest.
level >= FormatAdapter.__repeat_at_end could be called twice but only if repeat_level < enabled level.
Doing it this way means that if we later log to db we can also log to db if gate passes.