Skip to content

Commit

Permalink
More debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Mar 4, 2022
1 parent ce5e205 commit cac4018
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import process from 'process'

const { Kind, parse, print } = GraphQL

const condLog = (message) => {
process.env.NETLIFY_GRAPH_DEBUG === 'true' && console.log(message);
const condLog = (...args) => {
process.env.NETLIFY_GRAPH_DEBUG === 'true' && console.log(...args);
}

/**
Expand Down Expand Up @@ -607,7 +607,7 @@ Run \`netlify graph:init\` to generate a new token.`

const { failedPersistedFunctions, functionDefinitions } =
await generatePersistedFunctionsFile({
logger: console.log,
logger: condLog,
netlifyGraphConfig,
schema,
operationsDoc: currentOperationsDoc,
Expand Down

0 comments on commit cac4018

Please sign in to comment.