Force dumping debug info on recreate.

We need a way to debug successful solvers that's still targeting to a
specific flight. This will do for now.
This commit is contained in:
Dan Albert
2023-08-08 20:56:26 -07:00
parent 257f2072e8
commit 09f1af37fd
4 changed files with 26 additions and 13 deletions

View File

@@ -167,7 +167,7 @@ class QFlightWaypointTab(QFrame):
if result == QMessageBox.Yes:
self.flight.set_flight_type(task)
try:
self.flight.recreate_flight_plan()
self.flight.recreate_flight_plan(dump_debug_info=True)
except PlanningError as ex:
self.flight.set_flight_type(original_task)
logging.exception("Could not recreate flight")