Skip to content

logger: fix debug logs' formatting directives#2054

Merged
dnwe merged 1 commit intoIBM:mainfrom
utrack:fix-debuglog-format
Nov 6, 2021
Merged

logger: fix debug logs' formatting directives#2054
dnwe merged 1 commit intoIBM:mainfrom
utrack:fix-debuglog-format

Conversation

@utrack
Copy link
Contributor

@utrack utrack commented Oct 29, 2021

Default DebugLogger had broken Printf directives -
for DebugLogger.Printf(fmt,A,B,C) it called Logger.Printf(fmt,[A B C]),
which resulted in logs like

client/coordinator coordinator for consumergroup [topicname
%!s(int32=1) host:9094] is #%!d(MISSING) (%!s(MISSING))

This commit fixes value passing for Printf.

Default DebugLogger had broken Printf directives -
for DebugLogger.Printf(fmt,A,B,C) it called Logger.Printf(fmt,[A B C]),
which resulted in logs like
```
client/coordinator coordinator for consumergroup [topicname
%!s(int32=1) host:9094] is #%!d(MISSING) (%!s(MISSING))
```

This commit fixes value passing for Printf.
@utrack utrack requested a review from bai as a code owner October 29, 2021 09:42
@ghost ghost added the cla-needed label Oct 29, 2021
@utrack
Copy link
Contributor Author

utrack commented Oct 29, 2021

@bai I've just signed the CLA, not sure how to rerun the checkbot.

@ghost ghost removed the cla-needed label Oct 29, 2021
Copy link
Collaborator

@dnwe dnwe left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants