feat: improve error handling in OffsetMakerEngine and enhance logging in LighterGateway for better debugging and robustness

This commit is contained in:
discountry
2025-11-12 20:34:02 +08:00
parent 870fe2b8d7
commit 28bc1d5210
3 changed files with 23 additions and 10 deletions
+1 -2
View File
@@ -162,8 +162,7 @@ export class LighterExchangeAdapter implements ExchangeAdapter {
return;
}
if (isSuccessfulResponse(error)) {
console.info(`[LighterExchangeAdapter] ${context}: ${JSON.stringify(error)}`);
return;
return; // success responses are noisy; ignore unless non-200
}
console.error(`[LighterExchangeAdapter] ${context} failed: ${extractMessage(error)}`);
}