mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 04:17:54 +00:00
fix(glmt): gate retry rate limit logs behind verbose flag
Rate limit retry messages now only appear when verbose mode is enabled, keeping test output clean while preserving debug capability.
This commit is contained in:
+10
-6
@@ -447,9 +447,11 @@ export class GlmtProxy {
|
|||||||
lastError = err;
|
lastError = err;
|
||||||
const delay = this.calculateRetryDelay(attempt, retryAfter);
|
const delay = this.calculateRetryDelay(attempt, retryAfter);
|
||||||
|
|
||||||
console.error(
|
if (this.verbose) {
|
||||||
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
|
console.error(
|
||||||
);
|
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
await this.sleep(delay);
|
await this.sleep(delay);
|
||||||
}
|
}
|
||||||
@@ -507,9 +509,11 @@ export class GlmtProxy {
|
|||||||
lastError = err;
|
lastError = err;
|
||||||
const delay = this.calculateRetryDelay(attempt, retryAfter);
|
const delay = this.calculateRetryDelay(attempt, retryAfter);
|
||||||
|
|
||||||
console.error(
|
if (this.verbose) {
|
||||||
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
|
console.error(
|
||||||
);
|
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
await this.sleep(delay);
|
await this.sleep(delay);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user