diff --git a/app/run.ts b/app/run.ts index 70e3efe55..71282fa41 100644 --- a/app/run.ts +++ b/app/run.ts @@ -62,7 +62,7 @@ export const run = async (channel: string, mutation: string, options: RunOptions if (process.env.NODE_ENV === 'production') { coreLogger.debug('Error:', error.message); } else { - const logger = coreLogger[error.status && error.status >= 400 ? 'error' : 'warn']; + const logger = coreLogger[error.status && error.status >= 400 ? 'error' : 'warn'].bind(coreLogger); logger('Error:', error.message); } }