Repository: lens Updated Branches: refs/heads/master 9b402aee3 -> c326de77c
LENS-892: Log lens Session details in Query Logs Project: http://git-wip-us.apache.org/repos/asf/lens/repo Commit: http://git-wip-us.apache.org/repos/asf/lens/commit/c326de77 Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/c326de77 Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/c326de77 Branch: refs/heads/master Commit: c326de77c0185ceb0c20895e33f75452549ff72c Parents: 9b402ae Author: Amareshwari Sriramadasu <amareshw...@gmail.com> Authored: Fri Jul 29 18:08:45 2016 +0530 Committer: Puneet <puneet.gu...@inmobi.com> Committed: Fri Jul 29 18:08:45 2016 +0530 ---------------------------------------------------------------------- .../org/apache/lens/server/query/QueryExecutionServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lens/blob/c326de77/lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java ---------------------------------------------------------------------- diff --git a/lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java b/lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java index f5ea3db..84dcecd 100644 --- a/lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java +++ b/lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java @@ -1518,6 +1518,8 @@ public class QueryExecutionServiceImpl extends BaseLensService implements QueryE */ void rewriteAndSelect(final AbstractQueryContext ctx) throws LensException { logSegregationContext.setLogSegragationAndQueryId(ctx.getLogHandle()); + log.info("Query details : User query: {} Submitted user: {} Session: {}", ctx.getUserQuery(), + ctx.getSubmittedUser(), ctx.getLensSessionIdentifier()); MethodMetricsContext parallelCallGauge = MethodMetricsFactory.createMethodGauge(ctx.getConf(), false, PARALLEL_CALL_GAUGE); try {