From 6ced4993590bd4bd5396f7a11b4d767c9e970942 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Sep 2012 08:59:05 -0400 Subject: [PATCH] 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. --- pygrader/mailpipe.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.26.2