Closed eczajk1 closed 7 years ago
Hi @eczajk1 ,
You can manually turn on the logging and write the logs into a file on embedded Linux. You will need to add the following lines after this line:
logging.basicConfig(filename=srcLogDirectory + "yunPy.log", level=logging.DEBUG)
Note that the Python runtime package has a dedicated directory for logs: AWS-IoT-Python-Runtime/log/
, which is the default value configured as srcLogDirectory
. Once configured, you should be able to see log files in that directory for debugging purpose.
Also note that, without an SD card, logging to a file will be consuming Yun's on-board memory, which has a limited number of writes. Be aware of the file writes you are about to perform when you enable the logging.
Hope the above helps.
Thanks, Liusu
Thanks. This helps.
I'll close as I think my error is related to something I introduced.
Trying to adapt the "ThingShadow" example, but I keep getting these errors:
Later (I think when I expect the sketch to get shadow), I get this:
How best to diagnose these?