From 05b2e1c116f0a1a1f6890107fe76eb04577fa6ad Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Tue, 28 Jul 2026 21:22:56 +0000 Subject: [PATCH] fix: Fix missing logPath base dir argument NixOS/nixpkgs#519119 --- src/backend/common/logging.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/common/logging.ts b/src/backend/common/logging.ts index 123e1e3e..26f7ba3c 100644 --- a/src/backend/common/logging.ts +++ b/src/backend/common/logging.ts @@ -3,7 +3,6 @@ import { buildDestinationJsonPrettyStream, buildDestinationRollingFile, buildDes import type { Transform } from "node:stream"; import { PassThrough } from "node:stream"; import path from "path"; -import process from "process"; import { getDataDir } from "./index.ts"; import { isDebugMode } from '../utils.ts'; @@ -22,7 +21,7 @@ export const initLogger = (): [Logger, Transform] => { export const appLogger = async (config: LogOptions = {}): Promise<[Logger, PassThrough]> => { const stream = new PassThrough({objectMode: true}); const { file } = config; - const opts = parseLogOptions(isDebugMode() ? {...config, file: typeof file === 'object' ? {...file, level: 'trace'} : 'trace', console: 'trace', level: 'trace'} : config); + const opts = parseLogOptions(isDebugMode() ? {...config, file: typeof file === 'object' ? {...file, level: 'trace'} : 'trace', console: 'trace', level: 'trace'} : {...config}, {logBaseDir: logPath, logDefaultPath: './scrobble.log'}); const logger = await loggerAppRolling(opts, { logBaseDir: logPath, logDefaultPath: './scrobble.log', -- 2.51.2