1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

add debug logging

This commit is contained in:
urlbot
2014-12-02 14:00:43 +01:00
parent 2484f32b5b
commit 9f6a4c793c

View File

@@ -1,5 +1,7 @@
#!/usr/bin/python3
import logging
from sleekxmpp import ClientXMPP
from local_config import conf
@@ -34,6 +36,11 @@ class bot(ClientXMPP):
if '__main__' == __name__:
logging.basicConfig(
level=logging.DEBUG,
format='%(levelname)-8s %(message)s'
)
xmpp = bot(
jid=conf('jid'),
password=conf('password'),