refactor: migrate to winston and enable daily rotated app logs (#71)

This commit is contained in:
vin authored and GitHub committed 2026-02-06 21:10:54 +08:00
1 parent ed94abf0d6
commit 2ae2216f1e
17 files changed
+414 -92

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@ import {
} from './handler';
import { CloudAccountSchema } from '../../types/cloudAccount';
import { CloudAccountRepo } from '../database/cloudHandler';
import { logger } from '../../utils/logger';
export const cloudRouter = os.router({
addGoogleAccount: os
@@ -72,7 +73,7 @@ export const cloudRouter = os.router({
return result;
} catch (error: any) {
console.error('[ORPC] syncLocalAccount error:', error.message, error.stack);
logger.error('[ORPC] syncLocalAccount error:', error.message, error.stack);
throw error;
}
}),