The real change now affecting the embedded market is that the application software is also being asked to view the general purpose processor element using a multiprocessing paradigm so that this ...
Logging makes simple. Log even the exception that you forgot to catch. Log messages from your print(msg). Support multiprocessing logging too.