We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f848b commit af19d97Copy full SHA for af19d97
autopilot/core/terminal.py
@@ -3,6 +3,7 @@
3
import sys
4
import os
5
from pathlib import Path
6
+from pprint import pformat
7
8
import datetime
9
import logging
@@ -406,6 +407,8 @@ def pilots(self) -> odict:
406
407
# Load pilots db as ordered dictionary
408
with open(pilot_db_fn, 'r') as pilot_file:
409
self._pilots = json.load(pilot_file, object_pairs_hook=odict)
410
+ self.logger.info(f'successfully loaded pilot_db.json file from {pilot_db_fn}')
411
+ self.logger.debug(pformat(self._pilots))
412
except Exception as e:
413
self.logger.exception((f"Exception opening pilot_db.json file at {pilot_db_fn}, got exception: {e}.\n",
414
"Not proceeding to prevent possibly overwriting corrupt pilot_db.file"))
0 commit comments