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
/
Methods
/
RefreshPeer.py
diff --git
a/PLC/Methods/RefreshPeer.py
b/PLC/Methods/RefreshPeer.py
index
75b3a87
..
90a0b70
100644
(file)
--- a/
PLC/Methods/RefreshPeer.py
+++ b/
PLC/Methods/RefreshPeer.py
@@
-137,7
+137,7
@@
class RefreshPeer(Method):
file_lock.unlock()
message("RefreshPeer caught exception - BEG")
import traceback
file_lock.unlock()
message("RefreshPeer caught exception - BEG")
import traceback
- traceback.print_exc()
+ traceback.print_exc(
file=log
)
message("RefreshPeer caught exception - END")
raise Exception, e
file_lock.unlock()
message("RefreshPeer caught exception - END")
raise Exception, e
file_lock.unlock()
@@
-250,12
+250,12
@@
class RefreshPeer(Method):
return True
else:
result=True
return True
else:
result=True
-
print
'COMPARING ',
+
# print >> log,
'COMPARING ',
for column in columns:
test= object[column] == peer_object[column]
for column in columns:
test= object[column] == peer_object[column]
-
print
column,test,
+
# print >> log,
column,test,
if not test: result=False
if not test: result=False
-
print
'=>',result
+
# print >> log,
'=>',result
return result
# Add/update new/existing objects
return result
# Add/update new/existing objects