Skip to content

Commit

Permalink
Merge pull request apache#2805 from metamx/query-time-start
Browse files Browse the repository at this point in the history
request log should reflect time the query was received
  • Loading branch information
fjy committed Apr 12, 2016
2 parents 1bf1dd0 + d4d1d61 commit b486eff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/main/java/io/druid/server/QueryResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void write(OutputStream outputStream) throws IOException, WebApplicationE

requestLogger.log(
new RequestLogLine(
new DateTime(),
new DateTime(start),
req.getRemoteAddr(),
theQuery,
new QueryStats(
Expand Down Expand Up @@ -258,7 +258,7 @@ public void write(OutputStream outputStream) throws IOException, WebApplicationE
);
requestLogger.log(
new RequestLogLine(
new DateTime(),
new DateTime(start),
req.getRemoteAddr(),
query,
new QueryStats(
Expand Down Expand Up @@ -305,7 +305,7 @@ public void write(OutputStream outputStream) throws IOException, WebApplicationE
);
requestLogger.log(
new RequestLogLine(
new DateTime(),
new DateTime(start),
req.getRemoteAddr(),
query,
new QueryStats(ImmutableMap.<String, Object>of(
Expand Down

0 comments on commit b486eff

Please sign in to comment.