Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assistant/src/util/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function buildRotatingLogger(config: LogFileConfig): pino.Logger {

const today = formatDate(new Date());
const filePath = logFilePathForDate(config.dir, new Date());
const fileStream = pino.destination({ dest: filePath, sync: false, mkdir: true });
const fileStream = pino.destination({ dest: filePath, sync: false, mkdir: true, mode: 0o600 });

activeLogDate = today;
activeLogFileConfig = config;
Expand Down Expand Up @@ -130,7 +130,7 @@ function getRootLogger(): pino.Logger {
}

try {
const fileStream = pino.destination({ dest: getLogPath(), sync: false, mkdir: true });
const fileStream = pino.destination({ dest: getLogPath(), sync: false, mkdir: true, mode: 0o600 });
Comment thread
siddseethepalli marked this conversation as resolved.

if (getDebugMode()) {
const prettyStream = pinoPretty({ destination: 2 });
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function buildLogger(config: LogFileConfig | null): pino.Logger {

const today = formatDate(new Date());
const filePath = logFilePathForDate(config.dir, new Date());
const fileStream = pino.destination({ dest: filePath, sync: false, mkdir: true });
const fileStream = pino.destination({ dest: filePath, sync: false, mkdir: true, mode: 0o600 });

activeLogDate = today;
activeConfig = config;
Expand Down
Loading