Skip to content

Commit af19d97

Browse files
add some logging flags ;)
1 parent 55f848b commit af19d97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autopilot/core/terminal.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44
import os
55
from pathlib import Path
6+
from pprint import pformat
67

78
import datetime
89
import logging
@@ -406,6 +407,8 @@ def pilots(self) -> odict:
406407
# Load pilots db as ordered dictionary
407408
with open(pilot_db_fn, 'r') as pilot_file:
408409
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))
409412
except Exception as e:
410413
self.logger.exception((f"Exception opening pilot_db.json file at {pilot_db_fn}, got exception: {e}.\n",
411414
"Not proceeding to prevent possibly overwriting corrupt pilot_db.file"))

0 commit comments

Comments
 (0)