Skip to content

Commit

Permalink
Remove old logging in mqtt event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Dec 18, 2024
1 parent 2fa60f3 commit eaff161
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions backend/api/EventHandlers/MqttEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,7 @@ private async void OnIsarStatus(object? sender, MqttReceivedArgs mqttArgs)

if (robot.Status == isarStatus.Status) { return; }

var preUpdatedRobot = await RobotService.ReadByIsarId(isarStatus.IsarId, readOnly: true);
if (preUpdatedRobot == null)
{
_logger.LogInformation("Received message from unknown ISAR instance {Id} with robot name {Name}", isarStatus.IsarId, isarStatus.RobotName);
return;
}
_logger.LogInformation("OnIsarStatus: Robot {robotName} has status {robotStatus} and current inspection area {areaName}", preUpdatedRobot.Name, preUpdatedRobot.Status, preUpdatedRobot.CurrentInspectionArea?.Name);
_logger.LogInformation("OnIsarStatus: Robot {robotName} has status {robotStatus} and current inspection area {areaName}", robot.Name, robot.Status, robot.CurrentInspectionArea?.Name);

_updateRobotSemaphore.WaitOne();
_logger.LogDebug("Semaphore acquired for updating robot status");
Expand Down

0 comments on commit eaff161

Please sign in to comment.