fix: log dial error

This commit is contained in:
Arseniy Klempner 2025-10-03 20:05:17 -07:00
parent 20f33ff450
commit 69192ddb9d
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B

View File

@ -343,11 +343,12 @@ export class WakuHeadless {
try {
await this.waku.dial(this.lightpushNode);
} catch {
// Ignore dial errors
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
log.warn(
"Failed to dial preferred lightpush node:",
this.lightpushNode,
message
);
}
}