Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
a13ab2cf
Unverified
Commit
a13ab2cf
authored
8 months ago
by
Sebastian Poxhofer
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
chore(datasource/custom): log data before jsonata processing (#30241)
parent
1c0fc374
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/modules/datasource/custom/index.ts
+2
-0
2 additions, 0 deletions
lib/modules/datasource/custom/index.ts
lib/modules/datasource/custom/readme.md
+16
-0
16 additions, 0 deletions
lib/modules/datasource/custom/readme.md
with
18 additions
and
0 deletions
lib/modules/datasource/custom/index.ts
+
2
−
0
View file @
a13ab2cf
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
lib/modules/datasource/custom/readme.md
+
16
−
0
View file @
a13ab2cf
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment