Skip to content

Commit cac4018

Browse files
committed
More debug logs
1 parent ce5e205 commit cac4018

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import process from 'process'
1313

1414
const { Kind, parse, print } = GraphQL
1515

16-
const condLog = (message) => {
17-
process.env.NETLIFY_GRAPH_DEBUG === 'true' && console.log(message);
16+
const condLog = (...args) => {
17+
process.env.NETLIFY_GRAPH_DEBUG === 'true' && console.log(...args);
1818
}
1919

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

608608
const { failedPersistedFunctions, functionDefinitions } =
609609
await generatePersistedFunctionsFile({
610-
logger: console.log,
610+
logger: condLog,
611611
netlifyGraphConfig,
612612
schema,
613613
operationsDoc: currentOperationsDoc,

0 commit comments

Comments
 (0)