Skip to content

Commit

Permalink
feat: log if we are using beforeQueryExecution result
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 9, 2019
1 parent 247a2e6 commit 0fb3c22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routines/executeQuery.js
Expand Up @@ -122,6 +122,8 @@ export default async (
result = await interceptor.beforeQueryExecution(executionContext, actualQuery);

if (result) {
log.info('beforeQueryExecution interceptor produced a result; short-circuiting query execution using beforeQueryExecution result');

return result;
}
}
Expand Down

0 comments on commit 0fb3c22

Please sign in to comment.