How to get rid off gossip logs in Hyperledger Fabric?

The gossip service outputs very verbose and useless logs in Fabric. These messages can be seen if one tries to view the logs of a peer container.

Screen Shot 2018-11-30 at 9.57.59 AM

How can one get rid of them? Today i tried 2 ways none of which worked.

Method 1: This was based on what I read on the official documentation

Capture

so I added it to the base.yaml file as follows:

command: peer logging setlevel ^gossip error && peer node start

this actually caused some problem at runtime and the container did not start properly. Then somewhere on stackoverflow I read to use bash – c “” so I tried that:

command: bash -c "peer logging setlevel ^gossip error && peer node start"

That also did not work. Then somewhere I read not to use bash but use /bin/bash. So I tried that and no surprise that too did not work. Note to self: try running the command from the docker container of the peer and see if it works then

Method 2: This method is based on what I read here. Accordingly I added CORE_LOGGING_GOSSIP=WARNING in base.yaml and that too did not work.

11/30/18: I have now tried all possible permutations and combinations. using bash, /bin/bash, changing the order of commands, running peer logging setlevel ^gossip error from inside the peer container and none of the options will silence the gossip debug logs. So frustrated with HL Fabric.

below is error message when I try to run peer logging setlevel ^gossip error from inside the container:

Screen Shot 2018-11-30 at 9.58.10 AM

screenshot of base.yaml (have tried all possible permutations)

Screen Shot 2018-11-30 at 10.04.14 AM

Making this note to remind myself of the constant problems I keep running into with HL Fabric. Should have chosen Quorum to develop my blockchain.

Advertisements
This entry was posted in Software. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s