Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.

Make test logger optional#315

Open
MadanThangavelu wants to merge 1 commit intouber-archive:masterfrom
MadanThangavelu:logger-opts
Open

Make test logger optional#315
MadanThangavelu wants to merge 1 commit intouber-archive:masterfrom
MadanThangavelu:logger-opts

Conversation

@MadanThangavelu
Copy link

This helps reduce noise during testing

@Matt-Esch
Copy link

I would make sure that the test cluster doesn't require being able to read the debug logger buffer.


self.tchannelJSON = TChannelJSON();
self.logger = DebugLogtron('autobahn');
self.logger = opts.logger || DebugLogtron('autobahn');
Copy link
Contributor

Choose a reason for hiding this comment

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

you can also do

DebugLogtron('autobahn', {
    enabled: opts.loggerEnabled
});

Setting enabled to false, silences everything except error and fatal.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants