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
@@ -2,6 +2,7 @@ import { v4 as uuidv4 } from 'uuid';
import { mapClaudeModelToGemini } from './ModelMapping';
import { cleanJsonSchema } from './JsonSchemaUtils';
import { SignatureStore } from './SignatureStore';
import { logger } from '../../utils/logger';
import {
ClaudeRequest,
Message,
@@ -378,7 +379,7 @@ function injectGoogleSearchTool(body: { tools?: GeminiToolDeclaration[] }) {
const hasFunctions = toolsArr.some((t) => t.functionDeclarations);
if (hasFunctions) {
console.info('Skipping googleSearch injection due to existing functionDeclarations');
logger.info('Skipping googleSearch injection due to existing functionDeclarations');
return;
}