log messages appearing twice with Python Logging

后端 未结 8 1381
天命终不由人
天命终不由人 2020-12-04 18:39

I\'m using Python logging, and for some reason, all of my messages are appearing twice.

I have a module to configure logging:

# BUG: It\'s outputting         


        
8条回答
  •  既然无缘
    2020-12-04 19:08

    I'm a python newbie, but this seemed to work for me (Python 2.7)

    while logger.handlers:
         logger.handlers.pop()
    

提交回复
热议问题