[LOGGER] Switch to built-in logging class
[rarslave2.git] / PAR2Set_JOIN.py
index 3381e72..bf0dc56 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 # vim: set ts=4 sts=4 sw=4 textwidth=92:
 
+import logging
 import PAR2Set
 from RarslaveCommon import *
 
@@ -51,7 +52,7 @@ class PAR2Set_JOIN (PAR2Set.PAR2Set):
 
                # check the result
                if ret != 0:
-                       fatalMessage ('PAR2 Check / Repair failed: %s' % self.p2file)
+                       logging.critical ('PAR2 Check / Repair failed: %s' % self.p2file)
                        return -ECHECK
 
                return SUCCESS