Upgrade SQLAlchemy, enable warning capturing

This commit is contained in:
Piotr F. Mieszkowski 2024-04-12 18:13:42 +02:00
parent c92b9aed80
commit 95b1396ee0
Signed by: pfm
GPG key ID: BDE5BC1FA5DC53D5
3 changed files with 5 additions and 1 deletions

View file

@ -43,7 +43,9 @@ EX_CONFIG = 78
def init_logging(config_filename):
if config_filename is not None:
logging.config.fileConfig(config_filename)
logging.captureWarnings(True)
logging.info('Configured from %s', config_filename)
else:
logging.config.dictConfig(FAIL_OVER_LOGGING_CONFIG)
logging.captureWarnings(True)
logging.warning('Lacre logging configuration missing, using syslog as default')

View file

@ -1,5 +1,5 @@
aiosmtpd==1.4.2
SQLAlchemy==1.4.32
SQLAlchemy==2.0.29
Markdown==3.4.1
M2Crypto==0.38.0
requests==2.27.1

View file

@ -101,6 +101,8 @@ def _serve(port) -> bytes:
logging.debug('Received %d bytes of data', len(message))
s.close()
# Trim EOM marker as we're only interested in the message body.
return message[:-len(EOM)]