trace: hint debug env var in error when crashing due to active child tasks

refs https://github.com/zrepl/zrepl/issues/542
This commit is contained in:
Christian Schwarz
2021-12-05 17:26:03 +01:00
parent b00b61e967
commit c1e2c9826f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ import (
"github.com/zrepl/zrepl/util/envconst"
)
var debugEnabled = envconst.Bool("ZREPL_TRACE_DEBUG_ENABLED", false)
const debugEnabledEnvVar = "ZREPL_TRACE_DEBUG_ENABLED"
var debugEnabled = envconst.Bool(debugEnabledEnvVar, false)
func debug(format string, args ...interface{}) {
if !debugEnabled {