From 79c9b8669933af120b0c56e40d7083f90c782351 Mon Sep 17 00:00:00 2001 From: andchiind Date: Wed, 18 Dec 2024 11:10:37 +0100 Subject: [PATCH] Add logs when mission definition has no deck --- backend/api/Controllers/MissionSchedulingController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/api/Controllers/MissionSchedulingController.cs b/backend/api/Controllers/MissionSchedulingController.cs index 24bd1e86..0db1b9fe 100644 --- a/backend/api/Controllers/MissionSchedulingController.cs +++ b/backend/api/Controllers/MissionSchedulingController.cs @@ -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,