Skip to content

Commit

Permalink
Add log before localization successful
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Jun 24, 2024
1 parent 207bf42 commit 24c548b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/api/EventHandlers/MqttEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ private async void OnIsarMissionUpdate(object? sender, MqttReceivedArgs mqttArgs

if (updatedFlotillaMissionRun.IsLocalizationMission() && (updatedFlotillaMissionRun.Status == MissionStatus.Successful || updatedFlotillaMissionRun.Status == MissionStatus.PartiallySuccessful))
{
_logger.LogInformation("Triggering localization mission successful. The robot {robotName} have status {robotStatus} and current area {areaName}", robot.Name, robot.Status, robot.CurrentArea?.Name);
missionSchedulingService.TriggerLocalizationMissionSuccessful(new LocalizationMissionSuccessfulEventArgs(robot.Id));
}

Expand Down

0 comments on commit 24c548b

Please sign in to comment.