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
Add check for whether log level is enabled before logging spew.Sdump outputs in BFG and protocol.
Summary Add check for whether log level is enabled before logging
spew.Sdump
outputs. Callingspew.Sdump
is rather expensive, and unnecessary when the output is going to be ignored.Changes
spew.Sdump
outputs in BFG and protocol.