Allow external logging
Created by: Marlin-Na
This PR replaces print
with canine_logging.print
and canine_logging.info/warning/error
, which allows we redirect canine logs to prefect server. If canine.set_get_logger_hook
is not invoked, it will still use print
for logging.
In addition, https://github.com/getzlab/canine/commit/9418c2a828bf878c1905b6dfbad63a77e518df39 logs saved and new values when input parameters don't match in job avoidance, which makes it easier to debug job avoidance. An alternative solution that I prefer is to keep a backup of the saved dataframe instead of overwriting (probably with an option).