jihoonson commented on a change in pull request #6787: Improve slfj logger
input for MDC field:datasource
URL: https://github.com/apache/incubator-druid/pull/6787#discussion_r244897936
##########
File path:
server/src/main/java/org/apache/druid/server/log/LoggingRequestLogger.java
##########
@@ -58,7 +64,7 @@ public void log(RequestLogLine requestLogLine) throws
IOException
try {
final Query query = requestLogLine.getQuery();
MDC.put("queryId", query.getId());
- MDC.put("dataSource", query.getDataSource().toString());
+ MDC.put("dataSource", findInnerDatasource(query).toString());
Review comment:
How about adding a new field like `isNested` to indicate this query is
nested or not?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]