If the MongoDB credentials are left to their default dummy values in secrets.py, then logging to the MongoDB backend will fail and the device will simply notify the user rather than exit the program. The same applies for logging to an onboard SD card. If an SD card is detected, the microcontroller will write backup data to it, otherwise it will be skipped.