mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: improve logging of errors during public ip retrieval
This commit is contained in:
@@ -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)}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +62,6 @@ export class BuiltinProxy extends BaseProxy {
|
||||
}
|
||||
|
||||
public override async getPublicIp(): Promise<string | null> {
|
||||
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}`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user