Skip to content

Commit

Permalink
Add logs when mission definition has no deck
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Dec 18, 2024
1 parent 95b9347 commit 14feaaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/api/Controllers/MissionSchedulingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ [FromBody] ScheduledMissionQuery scheduledMissionQuery
Map = new MapMetadata()
};

if (scheduledMissionDefinition.InspectionArea == null)
{
logger.LogWarning("Mission definition with ID {id} does not have an inspection area when scheduling", scheduledMissionDefinition.Id);
}

var missionRun = new MissionRun
{
Name = missionDefinition.Name,
Expand Down

0 comments on commit 14feaaa

Please sign in to comment.