Log the gpg_message in mailpipe._get_verified_message instead of printing it.
authorW. Trevor King <wking@drexel.edu>
Fri, 6 Apr 2012 18:14:30 +0000 (14:14 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 6 Apr 2012 18:14:30 +0000 (14:14 -0400)
pygrader/mailpipe.py

index 214765c269a664cc8eab0aefbc2aebfc74bcdd35..2cb1632bde7fd36885f32562670a56913f19eda1 100644 (file)
@@ -269,7 +269,7 @@ def _get_verified_message(message, pgp_key, use_color=None):
         _LOG.warn(_color_string(
                 string='{} has an invalid signature'.format(mid), color=bad))
         pass  #return None
-    print(gpg_message)
+    _LOG.info(gpg_message)
     for k,v in message.items(): # copy over useful headers
         if k.lower() not in ['content-type',
                              'mime-version',