From b7b224f7465db96de745ee337b51f0af7e8f0c21 Mon Sep 17 00:00:00 2001 From: Kushagra Singh Bisen Date: Tue, 24 Sep 2024 16:13:52 +0200 Subject: [PATCH] Refactor log file path in index.ts --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index c9a44bb..c043d97 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,8 +21,7 @@ function getAndUpdateIteration() { const iteration = getAndUpdateIteration(); const timestamp = getTimestamp(); -const log_file = fs.createWriteStream(`/logs/aggregator-${iteration}-${timestamp}.log`, { flags: 'a' }); - +const log_file = fs.createWriteStream(`aggregator-${iteration}-${timestamp}.log`, { flags: 'a' }); const logger = bunyan.createLogger({ name: 'solid-stream-aggregator',