We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c8f918 commit 1765d77Copy full SHA for 1765d77
doc/src/hooks.py
@@ -478,14 +478,12 @@ def write_probes_by_record(self, record: Record):
478
except FileNotFoundError:
479
# File doesn't exist, so write the new content
480
pass
481
- except Exception:
482
- # print(f"Error reading file {path}: {e}")
+ except Exception as e:
+ root_logger.error(f"Error reading file {path}: {e}")
483
return
484
485
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
+ root_logger.debug(f"Content of {filename} is already identical, no write performed.")
489
else:
490
with open(path, "w") as f:
491
f.write(new_content)
0 commit comments