You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the bridge instance support logging through configuration of the environment variable RUST_LOG. The bridge produces the logs with log level info and allows to get details about JSON-RPC call by setting the level debug.
From examples above it is clear that info level does not provide enough information to investigate possible issues whereas debug level produces lots of lines (not presented in the example above) which are superfluous for investigation of issues related to skipped or missed transactions or hard to use for tracing state of transfers.
Proposal for changes:
It is necessary to extend the logging functionality on 'info' level in order to have information hanlded and generated by the bridge instance more transparent.
Below is the list of information needed for every type of operation:
deposit_relay
tx hash of the transaction used to send funds to the HomeBridge contract, transaction originator, value of transaction.
tx hash of the transaction sent by the bridge to the ForeingBridge contract, a reference tx hash (allow to link this transaction to transaction from previous item)
information whether respond from the bridge contract (Deposit() event) recieved with the reference tx hash
information about other bridges responds with the reference tx hash
withdraw_confirm
tx hash of the transaction used to request withdraw from the ForeignBridge contract, transaction originator, value of transaction.
tx hash of the transaction sent by the bridge to the ForeingBridge contract, a reference tx hash (allow to link this transaction to transaction from previous item)
information about other bridges responds with the reference tx hash
withdraw_relay
tx hash of the transaction used to inform about signatures collected on ForeignBridge contract with decision if this bridge instance is responsible for relaying the withdraw
tx hash of the transaction sent by the bridge to the HomeBridge contract, a reference tx hash (allow to link this transaction to transaction from previous item)
information whether respond from the bridge contract (Withdraw() event) recieved with the reference tx hash. This should be included even if another instance of bridge sent information to the HomeBridge contract.
The text was updated successfully, but these errors were encountered:
Currently the bridge instance support logging through configuration of the environment variable
RUST_LOG
. The bridge produces the logs with log levelinfo
and allows to get details about JSON-RPC call by setting the leveldebug
.example of logs: https://gist.github.com/akolotov/47d951346db3627562acc7e6578dabaa#file-01_info_level-md
or
example of logs: https://gist.github.com/akolotov/47d951346db3627562acc7e6578dabaa#file-02_debug_level-md
From examples above it is clear that
info
level does not provide enough information to investigate possible issues whereasdebug
level produces lots of lines (not presented in the example above) which are superfluous for investigation of issues related to skipped or missed transactions or hard to use for tracing state of transfers.Proposal for changes:
It is necessary to extend the logging functionality on 'info' level in order to have information hanlded and generated by the bridge instance more transparent.
Below is the list of information needed for every type of operation:
deposit_relay
Deposit()
event) recieved with the reference tx hashwithdraw_confirm
withdraw_relay
Withdraw()
event) recieved with the reference tx hash. This should be included even if another instance of bridge sent information to the HomeBridge contract.The text was updated successfully, but these errors were encountered: