diff --git a/packages/server/logging/apolloPlugin.js b/packages/server/logging/apolloPlugin.js index b8a6f5590..9e33c5b33 100644 --- a/packages/server/logging/apolloPlugin.js +++ b/packages/server/logging/apolloPlugin.js @@ -17,7 +17,11 @@ module.exports = { } ) try { - apolloHelper( `${ctx.operation.operation} ${ctx.operation.selectionSet.selections[0].name.value}` ) + // console.log( ctx.operation.operation ) + // Filter out subscription ops + if ( !ctx.operation.operation.toLowerCase().includes( 'subscription' ) ) { + apolloHelper( `${ctx.operation.operation} ${ctx.operation.selectionSet.selections[0].name.value}` ) + } } catch ( e ) { Sentry.captureException( e ) }