Commit 47ca60d1 authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

change print to log statement

parent 84f3ce9f
......@@ -114,7 +114,7 @@ class OperationalLogger:
def email_log(self, addresses, from_address):
"""Send email to addresses with current buffered errors."""
print "sending email to", addresses
logging.info("Sending log email to %s", addresses)
message = "<br />\n".join([__class__.__colorize(line) for line in self.__error_buffer.getvalue().split('\n')])
OperationalMail.send_status(subject='Errors detected {}:{}'.format(self.__server_name,
os.path.basename(sys.argv[0])),
......
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