Commit 0b07ef48 authored by Nicolas Delaby's avatar Nicolas Delaby Committed by Arnaud Fontaine

- Decrease log level of verbose log line.

- Discard email_address option equals to ''


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils/erp5.utils.web_checker/@37451 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c68074b
......@@ -300,7 +300,7 @@ class HTTPCacheCheckerTestSuite(object):
x_varnish_match_object =\
self.x_varnish_header_search_regex.search(fetched_data)
x_varnish_reference = x_varnish_match_object.group(1)
logging.info('x_varnish_reference:%r for url:%r' %\
logging.debug('x_varnish_reference:%r for url:%r' %\
(x_varnish_reference, url))
hits = x_cache_header_match_object.group(1)
if hits.isdigit():
......@@ -367,7 +367,7 @@ class HTTPCacheCheckerTestSuite(object):
else:
report_message = 'No errors'
signal = 'OK'
if self.email_address is not None:
if self.email_address:
import smtplib
subject = 'HTTP Cache checker results for %s: %s' % (self.root_url,
signal)
......
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