From f33caa865e3b3fbf3e043344f6cb58b4d9317b34 Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Mon, 17 Oct 2022 10:07:38 +0300 Subject: [PATCH] fix: dont log huge lines when debug on --- index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/index.ts b/index.ts index 4de32f3..6f562bf 100644 --- a/index.ts +++ b/index.ts @@ -445,9 +445,6 @@ class Snowflake { ON_ERROR = 'skip_file' PURGE = ${purge};` - if (debug) { - console.log(querySqlText) - } await this.execute({ sqlText: querySqlText, }) @@ -619,9 +616,6 @@ async function copyIntoSnowflake({ cache, storage, global, jobs, config }: Meta< return } - if (global.debug) { - console.log('Files staged for copy:', filesStagedForCopy) - } const lastRun = await cache.get('lastRun', null) const maxTime = global.copyCadenceMinutes * 60 * 1000 const timeNow = new Date().getTime() @@ -655,7 +649,7 @@ async function copyIntoSnowflake({ cache, storage, global, jobs, config }: Meta< `Failed to copy ${String(filesStagedForCopy)} from object storage into Snowflake. Retrying in 3s.` ) } - } + } await jobs .retryCopyIntoSnowflake({ retriesPerformedSoFar: 0, filesStagedForCopy: chunkStagedForCopy })