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

How to limit/filter console output? #9941

Closed
4 tasks
paulvi opened this issue Aug 16, 2021 · 1 comment
Closed
4 tasks

How to limit/filter console output? #9941

paulvi opened this issue Aug 16, 2021 · 1 comment

Comments

@paulvi
Copy link

paulvi commented Aug 16, 2021

Summary

Originally terra-money/LocalTerra#31

Especially during local development, console output or running node seems too much.

How to limit/filter console output?

Problem Definition

How to limit/filter output?

Default output is 10-20 screen of data per minute.
When developing, that seeing consequence of sent transaction would be problematic.

One exact problem example is that there are some very long strings in output, that can take many lines

terrad_1         | 8:57AM INF ABCIQuery data= module=rpc path=custom/oracle/parameters result={"code":0,"codespace":"","height":"115","index":"0","info":"","key":null,"log":"","proofOps":null,"value":"ewogICJ2b3RlX3BlcmlvZCI6ICI1IiwKICAidm90ZV90aHJlc2hvbGQiOiAiMC41MDAwMDAwMDAwMDAwMDAwMDAiLAogICJyZXdhcmRfYmFuZCI6ICIwLjAyMDAwMDAwMDAwMDAwMDAwMCIsCiAgInJld2FyZF9kaXN0cmlidXRpb25fd2luZG93IjogIjUyNTYwMDAiLAogICJ3aGl0ZWxpc3QiOiBbCiAgICB7CiAgICAgICJuYW1lIjogInVrcnciLAogICAgICAidG9iaW5fdGF4IjogIjAuMDAyNTAwMDAwMDAwMDAwMDAwIgogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAidXNkciIsCiAgICAgICJ0b2Jpbl90YXgiOiAiMC4wMDI1MDAwMDAwMDAwMDAwMDAiCiAgICB9LAogICAgewogICAgICAibmFtZSI6ICJ1dXNkIiwKICAgICAgInRvYmluX3RheCI6ICIwLjAwMjUwMDAwMDAwMDAwMDAwMCIKICAgIH0sCiAgICB7CiAgICAgICJuYW1lIjogInVldXIiLAogICAgICAidG9iaW5fdGF4IjogIjAuMDAyNTAwMDAwMDAwMDAwMDAwIgogICAgfQogIF0sCiAgInNsYXNoX2ZyYWN0aW9uIjogIjAuMDAwMTAwMDAwMDAwMDAwMDAwIiwKICAic2xhc2hfd2luZG93IjogIjEwMDgwMCIsCiAgIm1pbl92YWxpZF9wZXJfd2luZG93IjogIjAuMDUwMDAwMDAwMDAwMDAwMDAwIgp9"}
terrad_1         | 8:57AM INF ABCIQuery data=0A2C746572726131646365677972656B6C7473777679793078793639796467786E3978387833327A647461706438 module=rpc path=/cosmos.auth.v1beta1.Query/Account result={"code":0,"codespace":"","height":"115","index":"0","info":"","key":null,"log":"","proofOps":null,"value":"CpwBCiAvY29zbW9zLmF1dGgudjFiZXRhMS5CYXNlQWNjb3VudBJ4Cix0ZXJyYTFkY2VneXJla2x0c3d2eXkweHk2OXlkZ3huOXg4eDMyemR0YXBkOBJGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQJ+CUFCV+ik24egr6pgyz4XupJ1nanymIw75ApdkBNaHCAY"}
terrad_1         | 8:57AM INF ABCIQuery data=0A2C746572726131646365677972656B6C7473777679793078793639796467786E3978387833327A647461706438 module=rpc path=/cosmos.auth.v1beta1.Query/Account result={"code":0,"codespace":"","height":"115","index":"0","info":"","key":null,"log":"","proofOps":null,"value":"CpwBCiAvY29zbW9zLmF1dGgudjFiZXRhMS5CYXNlQWNjb3VudBJ4Cix0ZXJyYTFkY2VneXJla2x0c3d2eXkweHk2OXlkZ3huOXg4eDMyemR0YXBkOBJGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQJ+CUFCV+ik24egr6pgyz4XupJ1nanymIw75ApdkBNaHCAY"}
terrad_1         | 8:57AM INF ABCIQuery data=1299040AD9030A8C020A322F74657272612E6F7261636C652E763162657461312E4D736741676772656761746545786368616E676552617465566F746512D5010A0463333964126A31322E333239363538343333353636393239373239756575722C31363637302E353034333333373436343331343030353838756B72772C31302E323335363135383037373133373932333133757364722C31342E353930323933303235313831353930353536757573641A2C746572726131646365677972656B6C7473777679793078793639796467786E3978387833327A6474617064382233746572726176616C6F70657231646365677972656B6C7473777679793078793639796467786E3978387833327A6479337561350AC7010A352F74657272612E6F7261636C652E763162657461312E4D736741676772656761746545786368616E676552617465507265766F7465128D010A2830313232363562663335633365306664333362373432326231343134323161373962303965616161122C746572726131646365677972656B6C7473777679793078793639796467786E3978387833327A6474617064381A33746572726176616C6F70657231646365677972656B6C7473777679793078793639796467786E3978387833327A64793375613512390A290A210A1F2F636F736D6F732E63727970746F2E736563703235366B312E5075624B657912020A001818120C0A0A0A05756C756E611201301A00 module=rpc path=/cosmos.tx.v1beta1.Service/Simulate result={"code":0,"codespace":"","height":"115","index":"0","info":"","key":null,"log":"","proofOps":null,"value":"CgQQusUEErQMCm8KNAoyL3RlcnJhLm9yYWNsZS52MWJldGExLk1zZ0FnZ3JlZ2F0ZUV4Y2hhbmdlUmF0ZVZvdGUKNwo1L3RlcnJhLm9yYWNsZS52MWJldGExLk1zZ0FnZ3JlZ2F0ZUV4Y2hhbmdlUmF0ZVByZXZvdGUS3wZbeyJldmVudHMiOlt7InR5cGUiOiJhZ2dyZWdhdGVfdm90ZSIsImF0dHJpYnV0ZXMiOlt7ImtleSI6InZvdGVyIiwidmFsdWUiOiJ0ZXJyYXZhbG9wZXIxZGNlZ3lyZWtsdHN3dnl5MHh5Njl5ZGd4bjl4OHgzMnpkeTN1YTUifSx7ImtleSI6ImV4Y2hhbmdlX3JhdGVzIiwidmFsdWUiOiIxMi4zMjk2NTg0MzM1NjY5Mjk3Mjl1ZXVyLDE2NjcwLjUwNDMzMzc0NjQzMTQwMDU4OHVrcncsMTAuMjM1NjE1ODA3NzEzNzkyMzEzdXNkciwxNC41OTAyOTMwMjUxODE1OTA1NTZ1dXNkIn1dfSx7InR5cGUiOiJtZXNzYWdlIiwiYXR0cmlidXRlcyI6W3sia2V5IjoiYWN0aW9uIiwidmFsdWUiOiIvdGVycmEub3JhY2xlLnYxYmV0YTEuTXNnQWdncm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U1NnV1c2QaUwoHbWVzc2FnZRIQCgZtb2R1bGUSBm9yYWNsZRI2CgZzZW5kZXISLHRlcnJhMWRjZWd5cmVrbHRzd3Z5eTB4eTY5eWRneG45eDh4MzJ6ZHRhcGQ4GkoKB21lc3NhZ2USPwoGYWN0aW9uEjUvdGVycmEub3JhY2xlLnYxYmV0YTEuTXNnQWdncmVnYXRlRXhjaGFuZ2VSYXRlUHJldm90ZRpRChFhZ2dyZWdhdGVfcHJldm90ZRI8CgV2b3RlchIzdGVycmF2YWxvcGVyMWRjZWd5cmVrbHRzd3Z5eTB4eTY5eWRneG45eDh4MzJ6ZHkzdWE1GlMKB21lc3NhZ2USEAoGbW9kdWxlEgZvcmFjbGUSNgoGc2VuZGVyEix0ZXJyYTFkY2VneXJla2x0c3d2eXkweHk2OXlkZ3huOXg4eDMyemR0YXBkOA=="}

image

Proposal

Assign categories or levels to output for filtering,
options for daemon to control output.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

Already addressed in Tendermint. Tendermint needs to release a new point release of v0.34 and then the SDK can backport the Tendermint update to v0.42.x and v0.43.x

ref: tendermint/tendermint#6826

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

No branches or pull requests

2 participants