Skip to content

Commit

Permalink
update tracer mock report to be function and add mock of submit
Browse files Browse the repository at this point in the history
  • Loading branch information
James Baxley committed Jun 13, 2016
1 parent 853ebfb commit deaf3f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apolloServer.js
Expand Up @@ -135,7 +135,11 @@ export default function apolloServer(options, ...rest) {

// Tracer-related stuff ------------------------------------------------

tracerLogger = { log: undefined, report: undefined };
tracerLogger = {
log: undefined,
report: () => {},
sumbit: () => {}
};
if (tracer) {
tracerLogger = tracer.newLoggerInstance();
tracerLogger.log('request.info', {
Expand Down

0 comments on commit deaf3f1

Please sign in to comment.