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
< = download-base
url = ${:_profile_base_location_}/monitor-templates/monitor-check-cache-hit.in
download-only = true
md5sum = 3362bea561597cd29d10d754c251c8bf
md5sum = 754a5ecf47ad1eeb044b2d621219a459
filename = monitor-check-cache-hit.in
mode = 0644
......
......@@ -11,13 +11,13 @@ from cStringIO import StringIO
from HTMLParser import HTMLParser
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
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
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
last_warn_log = None
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