remove PLC.Debug.log, use PLC.Logger.logger instead
[plcapi.git] / PLC / Methods / ResetPassword.py
index 967f21f..8e9da53 100644 (file)
@@ -5,7 +5,7 @@ import urllib
 
 from types import StringTypes
 
-from PLC.Debug import log
+from PLC.Logger import logger
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -119,7 +119,7 @@ class ResetPassword(Method):
                      Subject = message['subject'] % params,
                      Body = message['template'] % params)
         else:
-            print >> log, "Warning: No message template '%s'" % message_id
+            logger.warning("No message template '%s'" % message_id)
 
         # Logging variables
         self.event_objects = {'Person': [person['person_id']]}