From: W. Trevor King Date: Sun, 2 Sep 2012 12:59:05 +0000 (-0400) Subject: mailpipe: add a warning message before loading a message from a stream. X-Git-Tag: v0.3~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ced4993590bd4bd5396f7a11b4d767c9e970942;p=pygrader.git mailpipe: add a warning message before loading a message from a stream. This reminds you if you forget to use the `--mailbox` option when calling `pg.py`, and the process hangs waiting for a message on stdin. --- diff --git a/pygrader/mailpipe.py b/pygrader/mailpipe.py index b254273..dd88d82 100644 --- a/pygrader/mailpipe.py +++ b/pygrader/mailpipe.py @@ -610,6 +610,7 @@ def _load_messages(course, stream, mailbox=None, input_=None, output=None, continue_after_invalid_message=False, respond=None, dry_run=False): if mailbox is None: + _LOG.debug('loading message from {}'.format(stream)) mbox = None messages = [(None,_message_from_file(stream))] if output is not None: