-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
java-connectors: add thread name as part of the log message #35199
Changes from 1 commit
27337ff
60f4274
54ae650
2509e82
bcefac4
dfdb10e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ public void testAirbyteLogMessageFormat() throws java.io.IOException { | |
// validate that the message inside AirbyteLogMessage matches the pattern. | ||
// pattern to check for is: LOG_LEVEL className(methodName):LineNumber logMessage | ||
final String connectorLogMessageRegex = | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: consider using |
||
"^INFO [\\w+.]*.AirbyteLogMessageTemplateTest\\(testAirbyteLogMessageFormat\\):\\d+ hello$"; | ||
"^INFO " + Thread.currentThread().getName() + " [\\w+.]*.AirbyteLogMessageTemplateTest\\(testAirbyteLogMessageFormat\\):\\d+ hello$"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Call |
||
final Pattern pattern = Pattern.compile(connectorLogMessageRegex); | ||
|
||
final Matcher matcher = pattern.matcher(connectorLogMessage); | ||
|
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.
This being a user-visible change, it feels like it deserves an entry in the CDK changelog and therefore its own CDK version.