Add debug logging support to the PresenceService
This commit is contained in:
parent
7cc68303f9
commit
2c790da716
@ -1,5 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import logging
|
||||
import sugar.env
|
||||
from PresenceService import PresenceService
|
||||
|
||||
level = sugar.env.get_logging_level()
|
||||
if level == 'debug':
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(levelname)s %(message)s')
|
||||
|
||||
PresenceService.main()
|
||||
|
Loading…
Reference in New Issue
Block a user