Commit cc5ad084 authored by Kirill Smelkov's avatar Kirill Smelkov

X watch-rtcache: Print invalid message also to console

Useful to see reports not only via email but also in screen.
parent 194bd3ff
......@@ -88,6 +88,7 @@ if __name__ == "__main__":
msg['Subject'] = "%s invalid routes in cache" % len(invalid)
msg['From'] = host
msg['Date'] = formatdate(now)
print msg['Date'], invalid
try:
s = smtplib.SMTP(smtp)
s.sendmail(None, to, msg.as_string())
......
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