Skip to content
Snippets Groups Projects
Unverified Commit a13ab2cf authored by Sebastian Poxhofer's avatar Sebastian Poxhofer Committed by GitHub
Browse files

chore(datasource/custom): log data before jsonata processing (#30241)

parent 1c0fc374
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,8 @@ export class CustomDatasource extends Datasource {
return null;
}
logger.trace({ data }, `Custom manager fetcher '${format}' returned data.`);
for (const transformTemplate of transformTemplates) {
const expression = jsonata(transformTemplate);
data = await expression.evaluate(data);
......
......@@ -81,6 +81,22 @@ All available options:
}
```
### Debugging
Renovate writes tracing log entries before transformation starts and after if Renovate finds an unexpected data format.
To surface this data you can use `logLevelRemap` to surface this data on the App or run Renovate in dryRun mode and log level set to `trace` locally.
```json
{
"logLevelRemap": [
{
"matchMessage": "/^Custom manager fetcher/",
"newLogLevel": "info"
}
]
}
```
### Formats
#### JSON
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment