misc: configure agenda data sources to notify errors (#56734) #918
|
@ -1363,6 +1363,8 @@ def build_agenda_datasources(publisher, **kwargs):
|
|||
datasource.external = 'agenda'
|
||||
datasource.data_source = {'type': 'json', 'value': url}
|
||||
datasource.external_status = None # reset
|
||||
datasource.record_on_errors = False # those will be internal publik errors
|
||||
datasource.notify_on_errors = True # that should be notified to sysadmins.
|
||||
|
||||
datasource.name = agenda['text']
|
||||
datasource.store()
|
||||
# maintain caches
|
||||
|
|
Loading…
Reference in New Issue
Comme il s'agit d'erreurs sur lesquelles l'admin fonctionnel ne pourrait de toute façon rien faire, je pose ça ainsi.