Skip to content

Improve error logging #227

@NicoMolinaOZ

Description

@NicoMolinaOZ

We need to improve the way of logging errors not to skip important information regarding errors.

Inside the function crates/solver-service/src/apis/quote/generation.rs for get_token_name function, we have the following RPC call:

let result = self
	.delivery_service
	.contract_call(chain_id, tx)
	.await
	.map_err(|e| {
		QuoteError::InvalidRequest(format!("Failed to get token name: {}", e))
	})?;

We should find some way to always catch and log the error details. For example, for some reason, when the RPC returns a time-out, we are not seeing anything relevant when you need to analyze the error and check from which it comes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions