From 6e13955b08f9b153e2d4df11e37560a5a9f54a3d Mon Sep 17 00:00:00 2001 From: Jigme Datse Yli-Rasku Date: Wed, 29 May 2024 23:53:45 -0700 Subject: [PATCH] Let's see if that will log it. I'm not really sure. --- docs/courier-to-mailman3.md | 3 ++- source/courier-to-mailman3.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/courier-to-mailman3.md b/docs/courier-to-mailman3.md index f3740ec..6e3f4bd 100644 --- a/docs/courier-to-mailman3.md +++ b/docs/courier-to-mailman3.md @@ -32,4 +32,5 @@ This is our current version trying to communicate between courier and mailman3. * Logging error (I hope), when lmtp fails to be created. * Maybe this is better? * Catch exception, log based on that? - * Hm, go with bare "Exception"... The catch wasn't what was failing. \ No newline at end of file + * Hm, go with bare "Exception"... The catch wasn't what was failing. + * Let's try that instead? \ No newline at end of file diff --git a/source/courier-to-mailman3.py b/source/courier-to-mailman3.py index 033b1e1..072a824 100644 --- a/source/courier-to-mailman3.py +++ b/source/courier-to-mailman3.py @@ -67,6 +67,6 @@ try: raise except Exception as e: logger.error('lmtp error') - logger.error(traceback.format_exc()) + logger.exception('Got exception Traceback:') logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror) exit(100) \ No newline at end of file