git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove PLC.Debug.log, use PLC.Logger.logger instead
[plcapi.git]
/
PLC
/
Methods
/
VerifyPerson.py
diff --git
a/PLC/Methods/VerifyPerson.py
b/PLC/Methods/VerifyPerson.py
index
a0fc304
..
b34506a
100644
(file)
--- a/
PLC/Methods/VerifyPerson.py
+++ b/
PLC/Methods/VerifyPerson.py
@@
-3,7
+3,7
@@
import base64
import time
import urllib
import time
import urllib
-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
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-143,7
+143,7
@@
class VerifyPerson(Method):
Subject = message['subject'] % params,
Body = message['template'] % params)
else:
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']]}
# Logging variables
self.event_objects = {'Person': [person['person_id']]}