Skip to content

Commit

Permalink
fix escaping of log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailed committed Feb 6, 2025
1 parent c586de4 commit 79b5d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carbontracker/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def collect_power_usage(self, epoch: int):
# Only raise error if no measurements have been collected.
if not self.power_usages[-1]:
self.logger.err_critical(
r"Could not read CPU/DRAM energy consumption due to lack of read-permissions.\n\tPlease run the following command(s): \n\t\t" + r"\n\t\t".join(commands)
"Could not read CPU/DRAM energy consumption due to lack of read-permissions.\n\tPlease run the following command(s): \n\t\t" + "\n\t\t".join(commands)
)
# Append zero measurement to avoid further errors.
self.power_usages.append([0])
Expand Down

0 comments on commit 79b5d34

Please sign in to comment.