utils.py@00accd11978b
utils.py
Sun, 21 Jan 2018 22:38:01 +0000
- author
- Tuomo Valkonen <tuomov@iki.fi>
- date
- Sun, 21 Jan 2018 22:38:01 +0000
- changeset 42
- 00accd11978b
- parent 40
-
cfbeeec8cb82
- permissions
- -rw-r--r--
Moved logwindow dispay out of BorgendTray, and made notification_center
display it (if it would work)
#
# Utility functions for Borgend
#
def log_exception(logger, err, detail=None):
err_type=err.__class__.__name__
if detail:
logger.critical('%s:%s "%s"', str(detail), err_type, str(err))
else:
logger.critical('%s "%s"', err_type, str(err))