How can I silence the Ganache server running on the background when I am running my test suite? #4489
-
Consider this code: https://github.com/kindaro/blockchain-examples/tree/830fe50c7b07af71d1715737147ac713a99130de. This is the output I see when running
As I understand, what happens is that, when required, Ganache spins up a server that, by default, says, for every JSON RPC request made to it, its name. Is there a way to require Ganache in such a way that these messages be suppressed? I read that in a «standalone» instance of Ganache, running from command line, these messages can be suppressed with the flag |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
const provider = Ganache.provider({ logging: { quiet: true }});
should do the trick, unless you are passing your own logger ({ logging: { logger: console }}
) in which case Ganache does still send the logs to your custom logger.