loomnetwork / loomchain

Loom DAppChain Engine
Other
166 stars 32 forks source link

Event logging ignores log levels #465

Open ZimM-LostPolygon opened 6 years ago

ZimM-LostPolygon commented 6 years ago

https://github.com/loomnetwork/loomchain/blob/master/events/log.go#L16

I was trying to clean up the console output so I could only see logs from the contract. But this one was still being logged no matter what.

BFTLogLevel: "error"
LoomLogLevel: "error"
BlockchainLogLevel: error

And it's still logged.

enlight commented 5 years ago

The event logger should be controlled by LoomLogLevel, it should only log when the level is "debug".