Skip to content

Commit

Permalink
fix(logger): fix the issue where workflow log files do not output (no…
Browse files Browse the repository at this point in the history
  • Loading branch information
2013xile authored Jun 13, 2024
1 parent c2687f7 commit d8e80ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class PluginActionCustomRequestServer extends Plugin {
const logger = this.createLogger({
dirname: 'custom-request',
filename: '%DATE%.log',
transports: [...(process.env.NODE_ENV === 'production' ? ['dailyRotateFile'] : ['console'])],
} as LoggerOptions);

return logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ export default class PluginWorkflowServer extends Plugin {
}

const logger = this.createLogger({
dirname: path.join('workflows', date),
filename: `${workflowId}.log`,
transports: [...(process.env.NODE_ENV !== 'production' ? ['console'] : ['file'])],
dirname: path.join('workflows', String(workflowId)),
filename: '%DATE%.log',
} as LoggerOptions);

this.loggerCache.set(key, logger);
Expand Down

0 comments on commit d8e80ec

Please sign in to comment.