Must not call hex.Dump in non-debug mode...

This commit is contained in:
Jakob Borg
2015-10-27 10:27:18 +01:00
parent 2b6a6b91f3
commit e3c0fba34b
2 changed files with 10 additions and 4 deletions

View File

@@ -16,3 +16,7 @@ var (
func init() {
l.SetDebug("protocol", strings.Contains(os.Getenv("STTRACE"), "protocol") || os.Getenv("STTRACE") == "all")
}
func shouldDebug() bool {
return l.ShouldDebug("protocol")
}