Merge pull request #438 from kaitranntt/kai/fix/glmt-verbose-retry-logs

fix(glmt): gate retry rate limit logs behind verbose flag
This commit is contained in:
Kai (Tam Nhu) Tran
2026-02-03 21:34:47 -05:00
committed by GitHub
+10 -6
View File
@@ -447,9 +447,11 @@ export class GlmtProxy {
lastError = err;
const delay = this.calculateRetryDelay(attempt, retryAfter);
console.error(
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
);
if (this.verbose) {
console.error(
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
);
}
await this.sleep(delay);
}
@@ -507,9 +509,11 @@ export class GlmtProxy {
lastError = err;
const delay = this.calculateRetryDelay(attempt, retryAfter);
console.error(
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
);
if (this.verbose) {
console.error(
`[glmt-proxy] Rate limited, retry ${attempt + 1}/${this.retryConfig.maxRetries} after ${Math.round(delay)}ms`
);
}
await this.sleep(delay);
}