Skip to content

Commit

Permalink
chore: only use metaphysicsExtensionsLoggerMiddleware on dev
Browse files Browse the repository at this point in the history
[MOPLAT-26]
  • Loading branch information
admbtlr authored Nov 4, 2022
1 parent f4b9b1a commit 04853d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/relay/createEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function createEnvironment(
// We need to run the checkAuthenticationMiddleware as early as possible to make sure that the user
// session is still valid. This is why we need to keep it as low as possible in the middlewares array.
checkAuthenticationMiddleware(),
metaphysicsExtensionsLoggerMiddleware(),
__DEV__ ? metaphysicsExtensionsLoggerMiddleware() : null,
simpleLoggerMiddleware(),
__DEV__ ? relayErrorMiddleware() : null,
timingMiddleware(),
Expand Down

0 comments on commit 04853d3

Please sign in to comment.