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: remove handler's buffer #1796

Merged
merged 1 commit into from
Mar 24, 2017
Merged

logging: remove handler's buffer #1796

merged 1 commit into from
Mar 24, 2017

Conversation

pongad
Copy link
Contributor

@pongad pongad commented Mar 23, 2017

LoggingHandler's buffer is redundant,
since it's already using the batching feature.

LoggingHandler.flush previously just flushes its own buffer
and put messages in the batcher's buffer,
without necessarily making RPC calls.
This PR does not fix this problem,
but it makes flush obviously wrong instead of subtly.

The test for flush size is also removed.
Flush size should be forwareded to the batcher,
which already has its own test.

Updates #1795.

LoggingHandler's buffer is redundant,
since it's already using the batching feature.

LoggingHandler.flush previously just flushes its own buffer
and put messages in the batcher's buffer,
without necessarily making RPC calls.
This PR does not fix this problem,
but it makes flush obviously wrong instead of subtly.

The test for flush size is also removed.
Flush size should be forwareded to the batcher,
which already has its own test.

Updates #1795.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 23, 2017
Copy link
Member

@garrettjonesgoogle garrettjonesgoogle left a comment

Choose a reason for hiding this comment

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

LGTM

buffer = new LinkedList<>();
}
if (entry != null) {
write(entry, writeOptions);

This comment was marked as spam.

This comment was marked as spam.

@pongad pongad merged commit b5f2281 into googleapis:master Mar 24, 2017
@pongad pongad deleted the logging-sync branch March 24, 2017 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants