Skip to content

Commit

Permalink
Update comment for routes, fix renamed error var logging in runner
Browse files Browse the repository at this point in the history
  • Loading branch information
linkous8 committed May 7, 2024
1 parent bf6c28d commit af21fcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions servo/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def exec_command(self) -> servo.api.Status:
command_uid=cmd_response.command_uid,
)
self.logger.error(f"Responding with {status.dict()}")
self.logger.opt(exception=error).debug("Describe failure details")
self.logger.opt(exception=error_group).debug("Describe failure details")

self.clear_progress_queue()
return await self.servo.post_event(servo.api.Events.describe, status.dict())
Expand All @@ -190,7 +190,7 @@ async def exec_command(self) -> servo.api.Status:
command_uid=cmd_response.command_uid,
)
self.logger.error(f"Responding with {status.dict()}")
self.logger.opt(exception=error).debug("Measure failure details")
self.logger.opt(exception=error_group).debug("Measure failure details")

self.clear_progress_queue()
return await self.servo.post_event(servo.api.Events.measure, status.dict())
Expand Down Expand Up @@ -224,7 +224,7 @@ async def exec_command(self) -> servo.api.Status:
command_uid=cmd_response.command_uid,
)
self.logger.error(f"Responding with {status.dict()}")
self.logger.opt(exception=error).debug("Adjust failure details")
self.logger.opt(exception=error_group).debug("Adjust failure details")

self.clear_progress_queue()
return await self.servo.post_event(servo.api.Events.adjust, status.dict())
Expand Down
2 changes: 1 addition & 1 deletion servo/servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class Servo(servo.connector.BaseConnector):
"""

routes: dict[str, type[servo.connector.BaseConnector]] = {}
"""The dict of connectors this servo was initially configured with. Used for adding connectors that have been removed
"""The dict of connectors this servo was initially configured with. Used for storing the connectors to be added to this servo on initialization and re-start
"""

_api_client: Union[httpx.AsyncClient, AsyncOAuth2Client] = pydantic.PrivateAttr(
Expand Down

0 comments on commit af21fcc

Please sign in to comment.