feat: Add log optimization option and enhance logging configuration

This commit is contained in:
2025-01-02 23:06:38 +08:00
parent bd593269fe
commit ebd90ca352
6 changed files with 29 additions and 6 deletions

View File

@@ -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.");
}