Closed taldcroft closed 1 year ago
Ping @jeanconn. It would be good to get this into ska3-prime as it causes noise in cron jobs.
On this, sorry, I got side-tracked by what looks like an unrelated test fail when running on linux
FAILED kadi/commands/tests/test_commands.py::test_commands_create_archive_regress[2] - AssertionError: assert False
I couldn't remember what the state was of the archive regress (do we need new data installed on head?).
Description
Fix the problem in #276 by adding a keyword arg to the debug function to specify the logging level. In most cases a warning is appropriate (the default) but this particular situation is just informational.
Fixes #276
Interface impacts
Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
Before the patch this code would generate the informational output shown in #276 (circa 2023:048):
After the patch this runs quietly. I also confirmed that with the patch if the
kadi.logger
is set to"INFO"
log level then the expected INFO output appears.