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

Add benchmark for JUL agent without source information #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tahini
Copy link

@tahini tahini commented Mar 27, 2017

This patch goes with pull request lttng/lttng-ust#46 from lttng-ust

Signed-off-by: Genevieve Bastien [email protected]

@Before
public void testSetup() throws IOException {
LttngLogHandler hndl = new LttngLogHandler();
hndl.setLogSource(false);
Copy link

Choose a reason for hiding this comment

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

Oh I see, that's what this public method was for!

Hmm, could it be done through a System.getProperty(), or through a custom constructor?

Copy link

Choose a reason for hiding this comment

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

I remember that after discussion, we noticed it's common for handler classes to also offer setters for properties like this, so we can stay consistent with that.

@tahini tahini force-pushed the jul_no_source branch 2 times, most recently from 52269b2 to e7db4f3 Compare June 13, 2017 17:30
@tahini
Copy link
Author

tahini commented Jun 13, 2017

I added the unit tests to this PR

*/
@Test
public void testHandlerOutput() {
assertTrue(session.enableAllEvents());
Copy link

Choose a reason for hiding this comment

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

missing one space

import org.lttng.ust.agent.utils.JulTestUtils;

/**
* Enabled events test for the LTTng-UST JUL log handler, using the legacy API.
Copy link

Choose a reason for hiding this comment

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

This needs to be updated I think? It doesn't seem to be using the "legacy" API.

Copy link
Author

Choose a reason for hiding this comment

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

hmm. I did not ever bother trying to modify this javadoc :p

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

1 participant