Skip to content

Commit 1765d77

Browse files
author
Matthew Brandt
committed
Replace commented print statements with logger invocations.
1 parent 4c8f918 commit 1765d77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/src/hooks.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,12 @@ def write_probes_by_record(self, record: Record):
478478
except FileNotFoundError:
479479
# File doesn't exist, so write the new content
480480
pass
481-
except Exception:
482-
# print(f"Error reading file {path}: {e}")
481+
except Exception as e:
482+
root_logger.error(f"Error reading file {path}: {e}")
483483
return
484484

485485
if new_content == current_content:
486-
# TODO: Add logging, so this can be added to a debug-level output.
487-
# print(f"Content of {filename} is already identical, no write performed.")
488-
pass
486+
root_logger.debug(f"Content of {filename} is already identical, no write performed.")
489487
else:
490488
with open(path, "w") as f:
491489
f.write(new_content)

0 commit comments

Comments
 (0)