wscalls: do not log/notify about app errors anymore (#87554) #1218
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/87554-wscall-do-no-record-app-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -63,6 +74,7 @@ class NamedWsCallUI:
'record_on_errors',
title=_('Record on errors'),
value=self.wscall.record_on_errors if self.wscall.slug else True,
default_value=True,
Détail vu en passant, pour que l'onglet "Gestion des erreurs" ne soit pas marqué comme contenant une modification dès le début.
@ -565,6 +565,7 @@ class HtmlWidget:
self.attrs = {}
self.string = string
self.title = title
self.tab = kwargs.pop('tab', None)
Visiblement c'est la première fois qu'on met un HtmlWidget dans un onglet.
@ -208,3 +208,2 @@
app_error_code = get_app_error_code(response, data, 'json')
if (app_error_code != 0 or status >= 400) and (notify_on_errors or record_on_errors):
if status >= 400 and (notify_on_errors or record_on_errors):
record_wscall_error(status, data, response, app_error_code, notify_on_errors, record_on_errors)
Soit on est dans le cas "appel webservice nommé" et on n'enregistre plus les erreurs applicatives (l'objet du ticket); soit pour les appels webservices dans les workflows on passe déjà notify_on_errors=False et record_on_errors=False donc on n'entrait pas là-dedans.
7193afefc8
tofafee7c11a
fafee7c11a
to469b5d9bb9
WIP: wscalls: do not log/notify about app errors anymore (#87554)to wscalls: do not log/notify about app errors anymore (#87554)