mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-12 09:48:07 +00:00
feat: improve error handling in OffsetMakerEngine and enhance logging in LighterGateway for better debugging and robustness
This commit is contained in:
@@ -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)}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user