From 709b49b0e8cd94182180907aeb931a4ddd1569b5 Mon Sep 17 00:00:00 2001 From: musistudio Date: Sun, 10 Aug 2025 22:11:51 +0800 Subject: [PATCH] release v1.0.35 to fix windows logfile name --- package.json | 2 +- src/index.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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", }),