mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-10-19 15:26:33 +00:00
fix log dir for component file logger
This commit is contained in:
parent
c46e52f713
commit
7051634075
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export const componentFileLogger = async (type: string, name: string, fileConfig
|
|||
});
|
||||
|
||||
const filePath = typeof opts.file.path === 'function' ? opts.file.path() : opts.file.path;
|
||||
const base = filePath !== undefined ? path.dirname(filePath) : logPath;
|
||||
const base = filePath !== undefined ? path.dirname(filePath) : getLogsDir();
|
||||
const componentLogPath = path.join(base, `${type}-${name}.log`);
|
||||
|
||||
const componentConfig: LogOptions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue