Skip to content

Commit

Permalink
Refactor log file path in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
argahsuknesib committed Sep 24, 2024
1 parent 3de1b13 commit b7b224f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b7b224f

Please sign in to comment.