Skip to content

test(mempool): Allow custom log levels on reactor tests (backport #3719)#3753

Merged
melekes merged 3 commits intov1.xfrom
mergify/bp/v1.x/pr-3719
Aug 19, 2024
Merged

test(mempool): Allow custom log levels on reactor tests (backport #3719)#3753
melekes merged 3 commits intov1.xfrom
mergify/bp/v1.x/pr-3719

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Aug 19, 2024

Also disable the P2P log messages on the switches, which are not relevant for mempool.

In particular, this PR changes the log level of TestReactor_MaxTxBytes, which is very verbose and it currently could take 12s with the default "debug" level. With "info" level it takes 300ms.

For reviewers, the PR can be reviewed commit by commit.


This is an automatic backport of pull request #3719 done by [Mergify](https://mergify.com).

Also disable the P2P log messages on the switches, which are not
relevant for mempool.

In particular, this PR changes the log level of
`TestReactor_MaxTxBytes`, which is very verbose and it currently could
take 12s with the default "debug" level. With "info" level it takes
300ms.

For reviewers, the PR can be reviewed commit by commit.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 4c598bf)

# Conflicts:
#	mempool/reactor_test.go
@mergify mergify bot requested a review from a team as a code owner August 19, 2024 07:32
@mergify mergify bot added the conflicts label Aug 19, 2024
@mergify mergify bot requested a review from a team August 19, 2024 07:32
@mergify mergify bot assigned hvanz Aug 19, 2024
@mergify

This comment was marked as resolved.

@hvanz hvanz removed the conflicts label Aug 19, 2024
@melekes melekes merged commit 2c1aece into v1.x Aug 19, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-3719 branch August 19, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants