hapi icon indicating copy to clipboard operation
hapi copied to clipboard

Console output appears even when not configured

Open nvcexploder opened this issue 13 years ago • 2 comments

Default behavior is to log all info to console, but if a monitor is configured that doesn't include console, then I expect the console not to output data.

nvcexploder avatar Dec 12 '12 18:12 nvcexploder

Can you add a test that fails?

hueniverse avatar Dec 13 '12 07:12 hueniverse

I certainly can, but it sort-of works. My expectation would be that if there is no 'console' subscriber that nothing would go to console. Since console is the default, when the default is merged with no input from the configuration, it chooses all the defaults and continues to log to console. The secret is to pass an empty array in for console. My opinion is that it should do the same if there's no 'console' in the configuration.

nvcexploder avatar Jan 16 '13 16:01 nvcexploder