Commit ad375118 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5: check cache hit script improve output

prints only on stderr
parent 4aaadb96
...@@ -191,7 +191,7 @@ output = ${buildout:directory}/template-http-monitor.cfg.in ...@@ -191,7 +191,7 @@ output = ${buildout:directory}/template-http-monitor.cfg.in
< = download-base < = download-base
url = ${:_profile_base_location_}/monitor-templates/monitor-check-cache-hit.in url = ${:_profile_base_location_}/monitor-templates/monitor-check-cache-hit.in
download-only = true download-only = true
md5sum = 3362bea561597cd29d10d754c251c8bf md5sum = 754a5ecf47ad1eeb044b2d621219a459
filename = monitor-check-cache-hit.in filename = monitor-check-cache-hit.in
mode = 0644 mode = 0644
......
...@@ -11,13 +11,13 @@ from cStringIO import StringIO ...@@ -11,13 +11,13 @@ from cStringIO import StringIO
from HTMLParser import HTMLParser from HTMLParser import HTMLParser
def debug(*args): def debug(*args):
# sys.stdout.write("DEBUG: " + "\n : ".join(" ".join((str(arg) for arg in args)).split("\n")) + "\n") # sys.stderr.write("DEBUG: " + "\n : ".join(" ".join((str(arg) for arg in args)).split("\n")) + "\n")
pass pass
def log(*args): def log(*args):
sys.stdout.write(" ".join((str(arg) for arg in args)) + "\n") sys.stderr.write(" ".join((str(arg) for arg in args)) + "\n")
pass pass
def info(*args): def info(*args):
sys.stdout.write("INFO : " + "\n : ".join(" ".join((str(arg) for arg in args)).split("\n")) + "\n") sys.stderr.write("INFO : " + "\n : ".join(" ".join((str(arg) for arg in args)).split("\n")) + "\n")
pass pass
last_warn_log = None last_warn_log = None
def warn(*args): def warn(*args):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment