Skip to content

Commit 26c5f12

Browse files
committed
Log warning for tasks outside area polygon
1 parent b4c32da commit 26c5f12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/api/Services/InspectionAreaService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ InspectionArea inspectionArea
174174
)
175175
)
176176
{
177+
logger.LogWarning(
178+
"Robot position {robotPosition} is outside the inspection area polygon for task {taskId}",
179+
robotPosition,
180+
missionTask.Id
181+
);
177182
return false;
178183
}
179184
}

0 commit comments

Comments
 (0)