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

logging: avoid '%!F(MISSING)' in logs #6555

Merged
merged 1 commit into from Jan 29, 2024

Conversation

srenatus
Copy link
Contributor

When only passing a single string into a Printf-style function, any %-format specs in it will be filled accordingly; but there will be no arguments to use.

So now, we'll avoid calling the {Debug,Info,Warn,Error}f functions when we lack arguments.

When only passing a single string into a Printf-style function, any %-format
specs in it will be filled accordingly; but there will be no arguments to use.

So now, we'll avoid calling the `{Debug,Info,Warn,Error}f` functions when we
lack arguments.

Signed-off-by: Stephan Renatus <stephan@styra.com>
Copy link

netlify bot commented Jan 29, 2024

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit d7e8842
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/65b76dfd1f612e0008a5ae92
😎 Deploy Preview https://deploy-preview-6555--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@srenatus srenatus merged commit 2c90500 into open-policy-agent:main Jan 29, 2024
25 checks passed
@srenatus srenatus deleted the sr/no-format-log-misteps branch January 29, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants