Log full exceptions in case of failures in a procedure

This commit is contained in:
Fabio Manganiello 2020-09-01 10:33:56 +02:00
parent a65a6e9d02
commit 6c24783df7
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ class MailSmtpPlugin(MailOutPlugin):
_default_port = 25
_default_ssl_port = 465
def __init__(self, server: str, port: Optional[int] = None, local_hostname: Optional[str] = None,
def __init__(self, server: Optional[str] = None, port: Optional[int] = None, local_hostname: Optional[str] = None,
source_address: Optional[List[str]] = None, username: Optional[str] = None,
password: Optional[str] = None, password_cmd: Optional[str] = None, access_token: Optional[str] = None,
oauth_mechanism: Optional[str] = 'XOAUTH2', oauth_vendor: Optional[str] = None, ssl: bool = False,

View file

@ -478,6 +478,7 @@ def procedure(f):
return Response(output=ret)
except Exception as e:
logger.exception(e)
return Response(errors=[str(e)])
return _execute_procedure