Newer
Older
web-services / data-computer / v1 / logger.cfg
@Nicolas Thouvenin Nicolas Thouvenin on 13 Oct 764 bytes use charger/logger/recorder
; [use]
plugin = basics
plugin = analytics

# On ne garde que la première erreur déclénchée
[shift]

[debug]
text = Error trapped

[assign]
path = body.error.type
value = get('type')

path = body.error.scope
value = get('scope')

path = body.error.message
value = get('message')

path = env
value = env()

[swing]
test = env('headers.x-webhook-failure').startsWith('http')

[swing/URLFetch]
url = env('headers.x-webhook-failure').trim()
path = body
headers = Content-Type:application/json
target = result

# On enregistre uniqument quelques informations (à supprimer pour avoir la trace complète)
[exchange]
value = get('body')

[FILESave]
location = /tmp/retrieve
identifier = env('identifier')
jsonl = true
compress = false

[debug]
text = Error was saved