saeyslab / napari-sparrow

Other
17 stars 0 forks source link

Clean up debug and logging messages #119

Closed SilverViking closed 1 year ago

SilverViking commented 1 year ago

Use logging library instead of printing a mix of debug and warning messages directly to stdout in functions.py.

ArneDefauw commented 1 year ago

On main all print statements are now replaced with log messages to stdout (https://github.com/saeyslab/napari-sparrow/commit/e42511ba5cba4003a6191681e3fc1d805fb8582a). If using hydra, logs will still be printed to log file in .submitit output folder.

Still need to do the same for warnings.

ArneDefauw commented 1 year ago

Warnings are now also logged using a logger https://github.com/saeyslab/napari-sparrow/commit/21bab8bd67ef042d0cea8fdfc77df0c14623ad37 . Closing this issue.