Skip to content

Instantly share code, notes, and snippets.

@akolotov
Created February 11, 2018 22:21
Show Gist options
  • Save akolotov/47d951346db3627562acc7e6578dabaa to your computer and use it in GitHub Desktop.
Save akolotov/47d951346db3627562acc7e6578dabaa to your computer and use it in GitHub Desktop.
parity-bridge log levels examples

Investigation of parity-bridge logging facility (part I)

Examples of logs generated with info log level

env RUST_LOG=info ./bridge --config config.toml --database db.toml
INFO:bridge::bridge::deposit_relay: got 1 new deposits to relay
INFO:bridge::bridge::deposit_relay: relaying 1 deposits
INFO:bridge::bridge::deposit_relay: deposit relay completed
...
...
INFO:bridge::bridge::withdraw_confirm: got 1 new withdraws to sign
INFO:bridge::bridge::withdraw_confirm: withdraw is ready for signature submission. tx hash d0bf…b5cb
INFO:bridge::bridge::withdraw_confirm: signing
INFO:bridge::bridge::withdraw_confirm: signing complete
INFO:bridge::bridge::withdraw_confirm: submitting signature
INFO:bridge::bridge::withdraw_confirm: submitting 1 signatures
INFO:bridge::bridge::withdraw_confirm: submitting signatures complete
INFO:bridge::bridge::withdraw_confirm: waiting for new withdraws that should get signed
...
...
INFO:bridge::bridge::withdraw_relay: got 1 new signed withdraws to relay
INFO:bridge::bridge::withdraw_relay: collected signature is ready for relay: tx hash: 6a3f…3fd7
INFO:bridge::bridge::withdraw_relay: fetching messages and signatures
INFO:bridge::bridge::withdraw_relay: fetching messages and signatures complete
INFO:bridge::bridge::withdraw_relay: fetching whether message values are sufficent
INFO:bridge::bridge::withdraw_relay: fetching whether message values are sufficent complete
INFO:bridge::bridge::withdraw_relay: relaying 1 withdraws
INFO:bridge::bridge::withdraw_relay: relaying withdraws complete
INFO:bridge::bridge::withdraw_relay: waiting for signed withdraws to relay

Investigation of parity-bridge logging facility (part II)

Examples of logs generated with debug log level

env RUST_LOG=debug ./bridge --config config.toml --database db.toml
DEBUG:<unknown>: [22] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0xd1e54f60beecb42bc2c19f80fa8bf751f8224be9"],"fromBlock":"0xfc9","limit":null,"toBlock":"0xfc9",
"topics":[["0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c"],null,null,null]}],"id":22}
INFO:bridge::bridge::deposit_relay: got 1 new deposits to relay
DEBUG:<unknown>: [43] Calling: {"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"data":"0x26b3293f00000000000000000000000037a30534da3d53aa1867adde26e114a3161b2b12000000000000000000
000000000000000000000000000000000a3a6f6c4ef000bc4bf45a7c230561aa2b8a1432cb4a5d976960b9ebf30e594a4e5c78c9f6363d","from":"0xf3ee321df87781864f46f6464e764c2827fca73b","gas":"0x124f80","gasPrice
":"0x430e23400","to":"0x6500d471c8973d95493b417c44ab85f31265a2b6"}],"id":43}
INFO:bridge::bridge::deposit_relay: relaying 1 deposits
INFO:bridge::bridge::deposit_relay: deposit relay completed
DEBUG:<unknown>: [50] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0x6500d471c8973d95493b417c44ab85f31265a2b6"],"fromBlock":"0x1007","limit":null,"toBlock":"0x1007
","topics":[["0xeb043d149eedb81369bec43d4c3a3a53087debc88d2525f13bfaa3eecda28b5c"],null,null,null]}],"id":50}
DEBUG:<unknown>: [51] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0x6500d471c8973d95493b417c44ab85f31265a2b6"],"fromBlock":"0x1007","limit":null,"toBlock":"0x1007
","topics":[["0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364"],null,null,null]}],"id":51}
...
...
DEBUG:<unknown>: [66] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0x6500d471c8973d95493b417c44ab85f31265a2b6"],"fromBlock":"0x1008","limit":null,"toBlock":"0x1008
","topics":[["0xeb043d149eedb81369bec43d4c3a3a53087debc88d2525f13bfaa3eecda28b5c"],null,null,null]}],"id":66}
DEBUG:<unknown>: [67] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0x6500d471c8973d95493b417c44ab85f31265a2b6"],"fromBlock":"0x1008","limit":null,"toBlock":"0x1008
","topics":[["0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364"],null,null,null]}],"id":67}
INFO:bridge::bridge::withdraw_confirm: got 1 new withdraws to sign
INFO:bridge::bridge::withdraw_confirm: withdraw is ready for signature submission. tx hash 9288…aef9
DEBUG:<unknown>: [68] Calling: {"jsonrpc":"2.0","method":"eth_sign","params":["0xf3ee321df87781864f46f6464e764c2827fca73b","0x37a30534da3d53aa1867adde26e114a3161b2b12000000000000000000000000000000000000000000000000000e3dd0a82db6e0928879a3fbfc6611ddcad407027e9a5f206cf1255a0be16d91e93d9d88cbaef9"],"id":68}
INFO:bridge::bridge::withdraw_confirm: signing
INFO:bridge::bridge::withdraw_confirm: signing complete
INFO:bridge::bridge::withdraw_confirm: submitting signature
DEBUG:<unknown>: [69] Calling: {"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"data":"0x630cea8e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000416e62bc14b56c6fe7b95482c331462414b78af8f16ca36f9fa5dcf184336688984d54ed840814b0430f65be2bbab0f8436d328f17f7f152baea986e9fc6e74b651c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005437a30534da3d53aa1867adde26e114a3161b2b12000000000000000000000000000000000000000000000000000e3dd0a82db6e0928879a3fbfc6611ddcad407027e9a5f206cf1255a0be16d91e93d9d88cbaef9000000000000000000000000","from":"0xf3ee321df87781864f46f6464e764c2827fca73b","gas":"0x2dc6c0","gasPrice":"0x430e23400","to":"0x6500d471c8973d95493b417c44ab85f31265a2b6"}],"id":69}
INFO:bridge::bridge::withdraw_confirm: submitting 1 signatures
INFO:bridge::bridge::withdraw_confirm: submitting signatures complete
INFO:bridge::bridge::withdraw_confirm: waiting for new withdraws that should get signed
...
...
DEBUG:<unknown>: [76] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address": ["0x6500d471c8973d95493b417c44ab85f31265a2b6"],"fromBlock":"0x1009","limit":null,"toBlock":"0x1009","topics":[["0xeb043d149eedb81369bec43d4c3a3a53087debc88d2525f13bfaa3eecda28b5c"],null,null,null]}],"id":76}
DEBUG:<unknown>: [77] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0x6500d471c8973d95493b417c44ab85f31265a2b6"],"fromBlock":"0x1009","limit":null,"toBlock":"0x1009","topics":[["0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364"],null,null,null]}],"id":77}
INFO:bridge::bridge::withdraw_relay: got 1 new signed withdraws to relay
INFO:bridge::bridge::withdraw_relay: collected signature is ready for relay: tx hash: 99ed…6f6b
DEBUG:<unknown>: [78] Calling: {"jsonrpc":"2.0","method":"eth_call","params":[{"data":"0x490a32c6b2820aa163b89faba0c6e3f910671d68364fab0500f108b5081c0e45b0925aec","to":"0x6500d471c8973d95493b417c44ab85f31265a2b6"},"latest"],"id":78}
DEBUG:<unknown>: [79] Calling: {"jsonrpc":"2.0","method":"eth_call","params":[{"data":"0x1812d996b2820aa163b89faba0c6e3f910671d68364fab0500f108b5081c0e45b0925aec0000000000000000000000000000000000000000000000000000000000000000","to":"0x6500d471c8973d95493b417c44ab85f31265a2b6"},"latest"],"id":79}
INFO:bridge::bridge::withdraw_relay: fetching messages and signatures
INFO:bridge::bridge::withdraw_relay: fetching messages and signatures complete
DEBUG:<unknown>: [36] Calling: {"jsonrpc":"2.0","method":"eth_call","params":[{"data":"0x6498d5900000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005437a30534da3d53aa1867adde26e114a3161b2b12000000000000000000000000000000000000000000000000000e3dd0a82db6e0928879a3fbfc6611ddcad407027e9a5f206cf1255a0be16d91e93d9d88cbaef9000000000000000000000000","to":"0xd1e54f60beecb42bc2c19f80fa8bf751f8224be9"},"latest"],"id":36}
INFO:bridge::bridge::withdraw_relay: fetching whether message values are sufficent
INFO:bridge::bridge::withdraw_relay: fetching whether message values are sufficent complete
DEBUG:<unknown>: [37] Calling: {"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"data":"0x9ce318f6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000016e62bc14b56c6fe7b95482c331462414b78af8f16ca36f9fa5dcf1843366889800000000000000000000000000000000000000000000000000000000000000014d54ed840814b0430f65be2bbab0f8436d328f17f7f152baea986e9fc6e74b65000000000000000000000000000000000000000000000000000000000000005437a30534da3d53aa1867adde26e114a3161b2b12000000000000000000000000000000000000000000000000000e3dd0a82db6e0928879a3fbfc6611ddcad407027e9a5f206cf1255a0be16d91e93d9d88cbaef9000000000000000000000000","from":"0x842eb2142c5aa1260954f07aae39ddee1640c3a7","gas":"0x2dc6c0","gasPrice":"0x430e23400","to":"0xd1e54f60beecb42bc2c19f80fa8bf751f8224be9"}],"id":37}
INFO:bridge::bridge::withdraw_relay: relaying 1 withdraws
INFO:bridge::bridge::withdraw_relay: relaying withdraws complete
INFO:bridge::bridge::withdraw_relay: waiting for signed withdraws to relay
DEBUG:<unknown>: [40] Calling: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"address":["0xd1e54f60beecb42bc2c19f80fa8bf751f8224be9"],"fromBlock":"0xfca","limit":null,"toBlock":"0xfca","topics":[["0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c"],null,null,null]}],"id":40}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment