Skip to content

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

Merged
srenatus merged 1 commit intoopen-policy-agent:mainfrom
srenatus:sr/no-format-log-misteps
Jan 29, 2024
Merged

logging: avoid '%!F(MISSING)' in logs#6555
srenatus merged 1 commit intoopen-policy-agent:mainfrom
srenatus:sr/no-format-log-misteps

Conversation

@srenatus
Copy link
Copy Markdown
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>
@netlify
Copy link
Copy Markdown

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
@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.

2 participants