utils.py

changeset 50
2d8947351727
parent 49
db33dfa64ad6
child 51
1614b2184bb4
--- a/utils.py	Mon Jan 22 18:16:51 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#
-# 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))

mercurial