summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networkQuality.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/networkQuality.go b/networkQuality.go
index b5f9743..6b80a7e 100644
--- a/networkQuality.go
+++ b/networkQuality.go
@@ -516,12 +516,8 @@ func main() {
}
}
- var downloadDebugging *debug.DebugWithPrefix = nil
- var uploadDebugging *debug.DebugWithPrefix = nil
- if debug.IsDebug(debugLevel) {
- downloadDebugging = &debug.DebugWithPrefix{Prefix: "download"}
- uploadDebugging = &debug.DebugWithPrefix{Prefix: "upload"}
- }
+ var downloadDebugging *debug.DebugWithPrefix = debug.NewDebugWithPrefix(debugLevel, "download")
+ var uploadDebugging *debug.DebugWithPrefix = debug.NewDebugWithPrefix(debugLevel, "upload")
downloadSaturationChannel := saturate(
saturationCtx,