-
Notifications
You must be signed in to change notification settings - Fork 896
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
Convert all logging statements from slf4j to jul #5674
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found reviewing a bit confusing in places where TransformSafeLogger is used since that api is now different from normal loggers, maybe worth sync'ing up that class.
// org.slf4j.LoggerFactory.getLogger((Class)ExceptionLogger.class) | ||
// .debug("exception in instrumentation", t); | ||
// ExceptionLogger.logSuppressedError("exception in instrumentation", t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
...ing-java9/src/main/java/io/opentelemetry/javaagent/tooling/ExposeAgentBootstrapListener.java
Outdated
Show resolved
Hide resolved
I simplified the API so that it looks the same as public void log(Level level, String message, Object[] args, Throwable error) The original |
@@ -64,6 +63,21 @@ dependencies { | |||
testImplementation("com.google.guava:guava") | |||
} | |||
|
|||
testing { | |||
suites { | |||
val testExceptionHandler by registering(JvmTestSuite::class) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this target specific tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, just the ExceptionHandlerTest
- I moved it to a separate source directory, along with all its dependencies. I found that when I run ./gradlew :javaagent-tooling:check
locally it was randomly failing on that test; probably because it interfered with other bytecode modifying tests in the test
source root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes, I missed that this is tied to directory name, thx!
* Convert all logging statements from slf4j to jul * code review comments * fix tests * Fix randomly failing test
Closes #5077