fix(smtpd): Log errors to stdout rather than SMTP session
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
s3lph 2023-10-17 22:08:09 +02:00
parent d6357c9bac
commit 32855f2472
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
3 changed files with 17 additions and 4 deletions

View file

@ -1,5 +1,18 @@
# EasyWKS Changelog
<!-- BEGIN RELEASE v0.4.4 -->
## Version 0.4.4
smtpd: Log errors to stdout rather than SMTP session
### Changes
<!-- BEGIN CHANGES 0.4.4 -->
- smtpd: Log errors to stdout rather than SMTP session
<!-- END CHANGES 0.4.4-->
<!-- END RELEASE v0.4.4 -->
<!-- BEGIN RELEASE v0.4.3 -->
## Version 0.4.3

View file

@ -1,2 +1,2 @@
__version__ = '0.4.3'
__version__ = '0.4.4'

View file

@ -19,9 +19,9 @@ class LmtpMailServer:
process_mail(message)
except EasyWksError as e:
return f'550 {e}'
except BaseException:
tb = traceback.format_exc()
return f'550 Error during message processing: {tb}'
except Exception as e:
traceback.print_exc()
return f'550 Error during message processing: {e}'
return '250 Message successfully handled'