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
review 'print' statements - make sure to use PLC.Debug.log that gets redirected to...
[plcapi.git]
/
PLC
/
Accessor.py
diff --git
a/PLC/Accessor.py
b/PLC/Accessor.py
index
e02d29e
..
e8a69f5
100644
(file)
--- a/
PLC/Accessor.py
+++ b/
PLC/Accessor.py
@@
-74,7
+74,7
@@
This is implemented as a singleton, so we can cache results over time"""
tag_type.add_role(role_obj)
except:
# xxx todo find a more appropriate way of notifying this
tag_type.add_role(role_obj)
except:
# xxx todo find a more appropriate way of notifying this
- print "Accessor.locate_or_create_tag: Could not add role %r to tag_type %s"%(role,tagname)
+ print
>> log,
"Accessor.locate_or_create_tag: Could not add role %r to tag_type %s"%(role,tagname)
self.set_cache(tagname,tag_type)
return tag_type
self.set_cache(tagname,tag_type)
return tag_type