Skip to content

Commit

Permalink
Merge pull request #207 from Lstmxx/dev
Browse files Browse the repository at this point in the history
fix: logger创建目录时需要加上recursive
  • Loading branch information
bakashigure authored Nov 7, 2023
2 parents b5fe10e + 1980f2a commit 0acdcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getAppBaseDir } from './path'
class Logger {
public constructor() {
if (!existsSync(this.log_file_dir_)) {
mkdirSync(this.log_file_dir_)
mkdirSync(this.log_file_dir_, { recursive: true })
}

const date = format(new Date(), 'yyyyMMdd')
Expand Down

0 comments on commit 0acdcd6

Please sign in to comment.