asfgit closed pull request #1432: DRILL-6689: Include query user information to drillbit.log URL: https://github.com/apache/drill/pull/1432
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java b/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java index 16e8eb0d8cd..fa085e99b04 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java @@ -260,9 +260,10 @@ public void run() { break; case SQL: final String sql = queryRequest.getPlan(); - // log query id and query text before starting any real work. Also, put + // log query id, username and query text before starting any real work. Also, put // them together such that it is easy to search based on query id - logger.info("Query text for query id {}: {}", this.queryIdString, sql); + logger.info("Query text for query with id {} issued by {}: {}", queryIdString, + queryContext.getQueryUserName(), sql); runSQL(sql); break; case EXECUTION: ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services