diff --git a/package.json b/package.json index db4a637..ec22775 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@musistudio/claude-code-router", - "version": "1.0.34", + "version": "1.0.35", "description": "Use Claude Code without an Anthropics account and route it to another LLM provider", "bin": { "ccr": "./dist/cli.js" diff --git a/src/index.ts b/src/index.ts index 827f2c9..bf94cc8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,8 +82,6 @@ async function run(options: RunOptions = {}) { ? parseInt(process.env.SERVICE_PORT) : port; - const startTime = new Date().toISOString(); - const server = createServer({ jsonPath: CONFIG_FILE, initialConfig: { @@ -101,7 +99,7 @@ async function run(options: RunOptions = {}) { level: "debug", stream: createWriteStream({ path: HOME_DIR, - filename: `./logs/ccr-${startTime}.log`, + filename: config.LOGNAME || `./logs/ccr-${+new Date()}.log`, maxFiles: 3, interval: "1d", }),