Skip to content

Commit

Permalink
fix this util
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed May 31, 2024
1 parent 13e74a3 commit f1b4dc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pioreactor/actions/led_intensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def led_intensity(
)

logger.info(
f"Updated LED {channel} from {getattr(old_state, channel):0.3g}% to {getattr(new_state, channel):0.3g}%."
f"Updated LED {channel} from {old_state[channel]:0.3g}% to {new_state[channel]:0.3g}%."
)

return updated_successfully
Expand Down
2 changes: 1 addition & 1 deletion pioreactor/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def __init__(self, log_level: str, unit: str, experiment: str) -> None:

self.client: Client = subscribe_and_callback(
self._collect_logs_into_bucket,
f"pioreactor/{self.unit}/{self.experiment}/logs/app",
f"pioreactor/{self.unit}/{self.experiment}/logs/app/{self.log_level.lower()}",
)

def _collect_logs_into_bucket(self, message):
Expand Down

0 comments on commit f1b4dc8

Please sign in to comment.