mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
feat: Add log optimization option and enhance logging configuration
This commit is contained in:
2
main.ts
2
main.ts
@@ -74,7 +74,7 @@ if (cmd == CMD.Unknown) {
|
||||
}
|
||||
|
||||
const settings = await load_settings(args.config);
|
||||
await base_logger.init(settings.db_path || settings.base);
|
||||
await base_logger.init(settings);
|
||||
if (!check_file_permissions(settings.base)) {
|
||||
throw Error("Can not aceess download loaction.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user