Skip to content

Commit

Permalink
Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Jun 24, 2024
1 parent bcbb586 commit 5d0964d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/api/Services/RobotService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public async Task<Robot> UpdateCurrentMissionId(string robotId, string? currentM

public async Task<Robot> UpdateCurrentArea(string robotId, string? areaId)
{
logger.LogInformation("Updating current area for robot with Id {robotId} to area with Id {areaId}", robotId, areaId);
if (areaId is null) { return await UpdateRobotProperty(robotId, "CurrentArea", null); }
var area = await areaService.ReadById(areaId);
if (area is null)
Expand Down

0 comments on commit 5d0964d

Please sign in to comment.