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
committed by Raffson
parent d96f7a267c
commit 97ee6ba19f
4 changed files with 26 additions and 13 deletions

View File

@@ -219,7 +219,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")