You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/03/18 11:51:16 UTC

[incubator-ponymail] branch master updated: Provide context for the log message

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
     new b488b40  Provide context for the log message
b488b40 is described below

commit b488b409e0f22acd660d9aba0dca606fd680b8c6
Author: Sebb <se...@apache.org>
AuthorDate: Wed Mar 18 11:50:57 2020 +0000

    Provide context for the log message
---
 tools/archiver.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index 895766f..bcd90d7 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -352,7 +352,8 @@ class Archiver(object): # N.B. Also used by import-mbox.py
                 mid = generators.generate(archiver_generator, msg, body, lid, attachments)
             except Exception as err:
                 if logger:
-                    logger.warning("Could not generate MID: %s", err)
+                    # N.B. use .get just in case there is no message-id
+                    logger.warning("Could not generate MID: %s. MSGID: %s", err, msg_metadata.get('message-id','?'))
                 mid = pmid
             if 'in-reply-to' in msg_metadata:
                 try: