Skip to content

Commit

Permalink
feat: Add duration to error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Mar 19, 2020
1 parent 0b01fd6 commit 59a4255
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cubejs-query-orchestrator/orchestrator/QueryQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,13 @@ class QueryQueue {
};
this.logger('Error while querying', {
processingId,
queueSize,
duration: ((new Date()).getTime() - startQueryTime),
queryKey: query.queryKey,
error: (e.stack || e).toString(),
queuePrefix: this.redisQueuePrefix,
requestId: query.requestId
requestId: query.requestId,
timeInQueue,
error: (e.stack || e).toString()
});
if (e instanceof TimeoutError) {
this.logger('Cancelling query due to timeout', {
Expand Down

0 comments on commit 59a4255

Please sign in to comment.