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

@@ -30,7 +30,7 @@ const renderFn: RenderFunction = (ctx, render) => {
export async function startServer(path: string) {
cfg_path = path;
const cfg = await load_settings(path);
await base_logger.init(cfg.db_path || cfg.base);
await base_logger.init(cfg);
task_manager = new TaskManager(cfg);
await task_manager.init();
task_manager.run(true).catch((e) => {