mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 22:55:24 +00:00
Properly log exceptions
This commit is contained in:
@@ -51,6 +51,6 @@ class SMTPAlert(BaseAlert):
|
||||
server.sendmail(self.user, self.to, msg.as_string())
|
||||
logger.info('Email sent')
|
||||
except Exception as ex:
|
||||
logger.error(ex)
|
||||
logger.exception(ex)
|
||||
finally:
|
||||
server.close()
|
||||
|
Reference in New Issue
Block a user