add debug logging
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from sleekxmpp import ClientXMPP
|
from sleekxmpp import ClientXMPP
|
||||||
from local_config import conf
|
from local_config import conf
|
||||||
|
|
||||||
@@ -34,6 +36,11 @@ class bot(ClientXMPP):
|
|||||||
|
|
||||||
|
|
||||||
if '__main__' == __name__:
|
if '__main__' == __name__:
|
||||||
|
logging.basicConfig(
|
||||||
|
level=logging.DEBUG,
|
||||||
|
format='%(levelname)-8s %(message)s'
|
||||||
|
)
|
||||||
|
|
||||||
xmpp = bot(
|
xmpp = bot(
|
||||||
jid=conf('jid'),
|
jid=conf('jid'),
|
||||||
password=conf('password'),
|
password=conf('password'),
|
||||||
|
|||||||
Reference in New Issue
Block a user