logging issue

3 views
Skip to first unread message

superbobry

unread,
Aug 31, 2009, 5:43:58 AM8/31/09
to pylast
Hello, first of all thanks a lot for a great library :)
I'm using it to scrobble songs from the mpd daemon. I added
logging.Logger instance to my script, to monitor it's activity. The
problem i faced - your module has it's own logger, defined on the
module level, i.e.

from logging import info, debug
info(msg)

so all your messages, are stored in my log also.
I looked through python docs and didn't find a way to fix this
Can you please add a function or parameter to disable that?

Thank you,
Sergei.

Amr Hassan

unread,
Aug 31, 2009, 6:07:16 PM8/31/09
to pyl...@googlegroups.com
Alrighty then. I made logging optional and disabled by default per
Network. To enable it use Network.enable_debugging()

-- Amr

superbobry

unread,
Sep 1, 2009, 6:47:49 AM9/1/09
to pylast
Thanks a lot :)
Reply all
Reply to author
Forward
0 new messages