Skip to content
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

Warn if looper iteration is too long #962

Merged
merged 2 commits into from
Nov 2, 2018

Conversation

skhoroshavin
Copy link
Member

Signed-off-by: Sergey Khoroshavin sergey.khoroshavin@dsr-corporation.com

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
if dur >= 0.5:
logger.debug("it took {:.3f} seconds to run once nicely".
format(dur), extra={"cli": False})
if dur >= 5:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently during the high load it can be quite expected that one looper run is more than 5 secs. It means that during the highload there will be a lot of such lines.

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin
Copy link
Member Author

(ci) test this please

@ashcherbakov ashcherbakov merged commit f068364 into hyperledger:master Nov 2, 2018
@skhoroshavin skhoroshavin deleted the improve-logs branch November 8, 2018 12:59
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.

None yet

2 participants