Skip to content

ARTEMIS-3356: fix debug message arguments#3629

Closed
michpetrov wants to merge 1 commit intoapache:mainfrom
michpetrov:art-3356
Closed

ARTEMIS-3356: fix debug message arguments#3629
michpetrov wants to merge 1 commit intoapache:mainfrom
michpetrov:art-3356

Conversation

@michpetrov
Copy link
Contributor

Issue: ARTEMIS-3356

if (logger.isDebugEnabled()) {
logger.debugf("reading page %d on address = %s onlyLargeMessages = %b", storeName, pageId,
storage, onlyLargeMessages);
logger.debugf("reading page %d on address = %s onlyLargeMessages = %b", new Object[] {pageId,
Copy link
Member

Choose a reason for hiding this comment

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

why the Object array?

Copy link
Contributor

Choose a reason for hiding this comment

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

I had the same question. 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

that's like changing 6 for half dozen...
It's the same thing.. I don't understand what is the point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Otherwise I get a conflict because there are two methods with similar signatures:
debugf(String, int, Object, Object)
debugf(String, Object, Object, Object)

Copy link
Member

Choose a reason for hiding this comment

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

I see thanks

Copy link
Member

@brusdev brusdev left a comment

Choose a reason for hiding this comment

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

LGTM +1

@asfgit asfgit closed this in 8a13b88 Jul 4, 2021
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.

4 participants