Add debug logging support to the PresenceService

This commit is contained in:
Dan Williams 2006-07-24 11:48:19 -05:00
parent 7cc68303f9
commit 2c790da716

View File

@ -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()