New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs repeat themselves #690

Closed
luckysori opened this Issue Jan 23, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@luckysori
Copy link
Contributor

luckysori commented Jan 23, 2019

When running end to end tests, something is causing most of the logs emitted to comit_node-alice.log and comit_node-bob.log to be repeated a lot of times. This makes these files really hard to read and slows down debugging.

@D4nte

This comment has been minimized.

Copy link
Member

D4nte commented Jan 23, 2019

Can you quote the exact lines?

@D4nte D4nte added the bug label Jan 23, 2019

@luckysori

This comment has been minimized.

Copy link
Contributor Author

luckysori commented Jan 23, 2019

For example:

[2019-01-23 10:07:28.417][comit_node::swap_protocols::rfc003::bitcoin::htlc][�[36mTRACE�[0m] BTC HTLC: Script(OP_IF OP_SIZE OP_PUSHBYTES_1 20 OP_EQUALVERIFY OP_SHA256 OP_PUSHBYTES_32 b9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c29 OP_EQUALVERIFY OP_DUP OP_HASH160 OP_PUSHBYTES_20 c4a0f26353d3c5820b2003f4ef90d6e3cb114dc9 OP_ELSE OP_PUSHBYTES_2 9000 OP_NOP3 OP_DROP OP_DUP OP_HASH160 OP_PUSHBYTES_20 8740422d8a4160afbe81f9747e7e08e53eb7ef5d OP_ENDIF OP_EQUALVERIFY OP_CHECKSIG)
[2019-01-23 10:07:28.417][comit_node::swap_protocols::rfc003::bitcoin::htlc][�[36mTRACE�[0m] BTC HTLC: Script(OP_IF OP_SIZE OP_PUSHBYTES_1 20 OP_EQUALVERIFY OP_SHA256 OP_PUSHBYTES_32 b9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c29 OP_EQUALVERIFY OP_DUP OP_HASH160 OP_PUSHBYTES_20 c4a0f26353d3c5820b2003f4ef90d6e3cb114dc9 OP_ELSE OP_PUSHBYTES_2 9000 OP_NOP3 OP_DROP OP_DUP OP_HASH160 OP_PUSHBYTES_20 8740422d8a4160afbe81f9747e7e08e53eb7ef5d OP_ENDIF OP_EQUALVERIFY OP_CHECKSIG)

and

[2019-01-23 10:07:29.438][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Created new HTLC for ethereum: EtherHtlc {
    refund_timeout: Seconds(
        43200
    ),
    refund_address: 0x4c3f30ea3b606f46c48b94ea53bb514999058524,
    redeem_address: 0x03a329c0248369a73afac7f9381e02fb43d2ea72,
    secret_hash: SecretHash(b9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c29)
}
[2019-01-23 10:07:29.438][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Final contract code: 635000000560203614602060006000376020602160206000600060026048f17fb9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c296021511416166059574203630000a8c01060965760006000f35b7fb8cac300e37f03ad332e581dea21b2f0b84eaaadc184a295fef71e81f44a741360006000a17303a329c0248369a73afac7f9381e02fb43d2ea72ff5b7f5d26862916391bf49478b2f5103b0720a842b45ef145a268f2cd1fb2aed5517860006000a1734c3f30ea3b606f46c48b94ea53bb514999058524ff
[2019-01-23 10:07:29.438][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Deploy header: 426000526063601b536100d3600561001b016020396100d3601bf3
[2019-01-23 10:07:29.438][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Deployable contract: 426000526063601b536100d3600561001b016020396100d3601bf3635000000560203614602060006000376020602160206000600060026048f17fb9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c296021511416166059574203630000a8c01060965760006000f35b7fb8cac300e37f03ad332e581dea21b2f0b84eaaadc184a295fef71e81f44a741360006000a17303a329c0248369a73afac7f9381e02fb43d2ea72ff5b7f5d26862916391bf49478b2f5103b0720a842b45ef145a268f2cd1fb2aed5517860006000a1734c3f30ea3b606f46c48b94ea53bb514999058524ff
[2019-01-23 10:07:29.439][reqwest::async_impl::response][�[34mDEBUG�[0m] Response: '201 Created' for http://localhost:8080/queries/bitcoin/transactions
[2019-01-23 10:07:29.439][comit_node::ledger_query_service::client][�[32mINFO�[0m] Created new query at location http://localhost:8080/queries/bitcoin/transactions/3
[2019-01-23 10:07:29.440][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Created new HTLC for ethereum: EtherHtlc {
    refund_timeout: Seconds(
        43200
    ),
    refund_address: 0x4c3f30ea3b606f46c48b94ea53bb514999058524,
    redeem_address: 0x03a329c0248369a73afac7f9381e02fb43d2ea72,
    secret_hash: SecretHash(b9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c29)
}
[2019-01-23 10:07:29.440][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Final contract code: 635000000560203614602060006000376020602160206000600060026048f17fb9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c296021511416166059574203630000a8c01060965760006000f35b7fb8cac300e37f03ad332e581dea21b2f0b84eaaadc184a295fef71e81f44a741360006000a17303a329c0248369a73afac7f9381e02fb43d2ea72ff5b7f5d26862916391bf49478b2f5103b0720a842b45ef145a268f2cd1fb2aed5517860006000a1734c3f30ea3b606f46c48b94ea53bb514999058524ff
[2019-01-23 10:07:29.440][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Deploy header: 426000526063601b536100d3600561001b016020396100d3601bf3
[2019-01-23 10:07:29.440][comit_node::swap_protocols::rfc003::ethereum::ether_htlc][�[36mTRACE�[0m] Deployable contract: 426000526063601b536100d3600561001b016020396100d3601bf3635000000560203614602060006000376020602160206000600060026048f17fb9087b82a6f8105fe6f4864d6c8bb471e7a674c736b3b662257044d7d9083c296021511416166059574203630000a8c01060965760006000f35b7fb8cac300e37f03ad332e581dea21b2f0b84eaaadc184a295fef71e81f44a741360006000a17303a329c0248369a73afac7f9381e02fb43d2ea72ff5b7f5d26862916391bf49478b2f5103b0720a842b45ef145a268f2cd1fb2aed5517860006000a1734c3f30ea3b606f46c48b94ea53bb514999058524ff

in comit_node-bob.log after running cargo make e2e btc_eth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment