Python logging file config KeyError: 'formatters'

后端 未结 4 1740
生来不讨喜
生来不讨喜 2021-02-02 08:45

I\'m currently working on a python project and I set up logging using a config file. It has already worked and was logging my messages as wanted.

But then, after rearran

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-02 09:02

    in my case this error was showing up when I was trying to run my flask app on Docker container.

    What helped me is adding:

    flask db init
    

    into the boot.sh that runs at the beginning of container creation.

提交回复
热议问题