Custom fields in logs
How can i add additional fields in log, so that the diagnostic report can be used for some auditing or investigation purposes?
I have a flow where in, a few API calls to a destination will fail(knowingly), but the input json is not part of the report unfortunately. So, i am thinking to add some details in the request URL/ endpoint. Is this the right approach? or is there a way to export all the input json data of all API calls in the diagnostic report? Tyler Lamparter any thoughts?
-
Vreddhi Bhat I'm not sure what you mean? The error log will show the record and request made to the endpoint.
0 -
Yes. I was intending to download all of those `Retry data` for all the failed calls in One go. Is there a way?
0 -
Vreddhi Bhat you would need to use our apis to get that since there isn't a way to download that from UI. The UI download feature will download a list of the errors, their message, trace key, and a few other things, but not the JSON payload. Here are the api docs to get this: https://docs.celigo.com/hc/en-us/articles/7708779714715-Errors-API-endpoints#data.
0 -
Thank you Tyler Lamparter. Finally, Is there a suggested way to log things, meaning, In a developer's world can he/she mimic the console.log and see those logs somewhere for a given run of a flow?
0 -
Vreddhi Bhat you can enable debug mode on scripts, connections, and most imports/exports. It's valid for up to 60min at a time, and is useful to troubleshoot.
Script execution log will show you anything you console log out within the script.
Connection will show you all requests to and from the connection at the connection level across all flows using that connection.
Most imports/exports have a debug option in the top right that show debug for just that import/export:
0
Please sign in to leave a comment.
Comments
5 comments