Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug logs to expressions #9533

Conversation

surbhiahuja
Copy link

Fixes #TODO

if (err != nil || result == nil) && allowUnresolved { // <nil> result is also un-resolved, and any error can be unresolved
if (err != nil || result == nil) && allowUnresolved {
// <nil> result is also un-resolved, and any error can be unresolved
log.WithError(err).Debug("unresolved is allowed ")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we know if we hit this branch, not line 26? Mayb add more message?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexec , Should I be adding a separate message for each debug pointer - Like on line: 26, 36 and 42? and in simple_template.go, on line 53?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I look at the logs, I should be able to know which line of code the logging came from. If each message was different, that would work.

@surbhiahuja
Copy link
Author

@alexec , I have updated as per comments, Let me know if any further changes are required.

@alexec
Copy link
Contributor

alexec commented Sep 13, 2022

Please sign off commits.

@surbhiahuja surbhiahuja force-pushed the improve-templating-diagnostics-8311 branch from 4ecf2b1 to 1cc8e1e Compare September 15, 2022 12:56
@alexec alexec changed the title updated simple_template.go & expression_template.go feat: add debug logs to expressions Sep 19, 2022
@surbhiahuja
Copy link
Author

@alexec , can we please close this PR.

@alexec alexec closed this Oct 10, 2022
@agilgur5
Copy link

This was superseded by #10741

@agilgur5 agilgur5 added area/templating Templating with `{{...}}` solution/superseded This PR or issue has been superseded by another one (slightly different from a duplicate) labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/templating Templating with `{{...}}` solution/superseded This PR or issue has been superseded by another one (slightly different from a duplicate)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants