hemilabs / heminetwork

The hemi network core daemons.
MIT License
67 stars 42 forks source link

bfg: check if msg will be logged before calling spew.Sdump #249

Closed joshuasing closed 2 months ago

joshuasing commented 2 months ago

Summary Add check for whether log level is enabled before logging spew.Sdump outputs. Calling spew.Sdump is rather expensive, and unnecessary when the output is going to be ignored.

Changes