summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-06-29 12:23:09 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-06-29 12:23:09 +0200
commited702138f64fb990832bed75032030aaba58b1b0 (patch)
treeeef8031ec01d839fe6e2eb38f6dee4be75756455
parent8655204192bacf94c2046ba030f6c090750bbc5a (diff)
downloadxdd2esi-ed702138f64fb990832bed75032030aaba58b1b0.tar.gz
xdd2esi-ed702138f64fb990832bed75032030aaba58b1b0.zip
Use logging, not print for validation messages
-rw-r--r--esilib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/esilib.py b/esilib.py
index f52ee6d..e68b6cd 100644
--- a/esilib.py
+++ b/esilib.py
@@ -112,10 +112,10 @@ class ESIFile:
rcnt += 1
else:
if rcnt != 0:
- print("=== Previous message repated {} times "
- "===".format(rcnt))
+ logging.error("=== Previous message repated "
+ "{} times ===".format(rcnt))
rcnt = 0
- print(message)
+ logging.error(message)
prevmsg = message
warnings.warn("The output is not a valid ESI!",
InvalidESIWarning)