git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modified create_slice() and get_rspec() to work with the new RSpec format
[sfa.git]
/
sfa
/
util
/
report.py
diff --git
a/sfa/util/report.py
b/sfa/util/report.py
index
28dd79a
..
9a882f0
100644
(file)
--- a/
sfa/util/report.py
+++ b/
sfa/util/report.py
@@
-1,5
+1,11
@@
-def trace(x):
- print x
+def trace(x, logger=None):
+ if logger:
+ logger.info(x)
+ else:
+ print x
-def error(x):
- print x
+def error(x, logger=None):
+ if logger:
+ logger.error(x)
+ else:
+ print x