Menu

#1633 No handlers could be found for logger "pywiki"

open
nobody
General (277)
5
2013-07-24
2013-05-16
Anonymous
No

Some time ago, I started getting the warning:

No handlers could be found for logger "pywiki"

This is generated in small code fragments I create. I (still) haven't seen it in thte standard bot operations.
It's possible I must do something to avoid it but I would like to know what. I think it started happening about the time the log became a rotating file log.

Pywikipedia trunk/pywikipedia/ (r11488, 2013/05/03, 08:14:51, OUTDATED)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok

Discussion

  • Nobody/Anonymous

     
  • Hazard-SJ

    Hazard-SJ - 2013-06-02

    I've been getting this too.

     
  • André Malafaya Baptista

    Try calling:

        wikipedia.setLogfileStatus(True)
    

    near the beginning of your code.

     

Log in to post a comment.