From d29d268b869aaf9d8a2b7f03e12fc95ca18a5314 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Wed, 22 Oct 2025 15:24:00 +0100 Subject: [PATCH] fix: improve logging of errors during public ip retrieval --- packages/core/src/main.ts | 2 +- packages/core/src/proxy/builtin.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/core/src/main.ts b/packages/core/src/main.ts index e2e6b83a..a173df5b 100644 --- a/packages/core/src/main.ts +++ b/packages/core/src/main.ts @@ -1129,7 +1129,7 @@ export class AIOStreams { } } catch (error) { logger.warn( - `Failed to get ${label}, retrying... (${attempt}/${maxRetries})` + `Failed to get ${label}, retrying... (${attempt}/${maxRetries}), error=${error instanceof Error ? error.message : String(error)}` ); } } diff --git a/packages/core/src/proxy/builtin.ts b/packages/core/src/proxy/builtin.ts index cbde2df9..b29650cb 100644 --- a/packages/core/src/proxy/builtin.ts +++ b/packages/core/src/proxy/builtin.ts @@ -62,8 +62,6 @@ export class BuiltinProxy extends BaseProxy { } public override async getPublicIp(): Promise { - logger.debug(`Validating ${this.config.credentials}`); - BuiltinProxy.validateAuth(this.config.credentials); if (this.config.publicIp) { @@ -83,6 +81,9 @@ export class BuiltinProxy extends BaseProxy { }); if (!response.ok) { + logger.error( + `Failed to check public IP using AWS: ${response.status}: ${response.statusText}` + ); throw new Error( `Failed to check public IP using AWS: ${response.status}: ${response.statusText}` );