diff --git a/bugbot/__init__.py b/bugbot/__init__.py index c95b0f836..0ffc6ab35 100644 --- a/bugbot/__init__.py +++ b/bugbot/__init__.py @@ -65,7 +65,7 @@ def create_logger(logger_extra): logger = logging.getLogger() logger.setLevel(logging.INFO) - handler = logging.StreamHandler(sys.stdout) + handler = logging.StreamHandler(sys.stderr) handler.setFormatter(formatter) logger.addHandler(handler) diff --git a/bugbot/mail.py b/bugbot/mail.py index a4a290f56..73485519e 100644 --- a/bugbot/mail.py +++ b/bugbot/mail.py @@ -92,6 +92,8 @@ def send( if subtype == "html": Body = replaceUnicode(Body) + if dryrun: + print(Body) message.attach(MIMEText(Body, subtype)) for file in files: