Python 3.2 logging with config file results in KeyError: 'formatters' on Raspbian

前端 未结 1 987
南笙
南笙 2021-01-25 16:52

I equipped my Python application with logging capability and it works flawlessly on my Windows system with Python 3.4. But when I deploy the application on my Raspberry Pi with

相关标签:
1条回答
  • 2021-01-25 17:08

    Well, this didn't last long... Turns out, I've been running my application on the RPi from a different working directory. Consequently, the file path to the logging.conf file is interpreted incorrectly relative to the differing working directory. Unfortunately, the logging library tries to continue on with non-existent files and doesn't throw a useful exception in that case.

    0 讨论(0)
提交回复
热议问题