summaryrefslogtreecommitdiffstats
path: root/lib/sync/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync/debug.go')
-rw-r--r--lib/sync/debug.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/sync/debug.go b/lib/sync/debug.go
index 0c2e912cd5..a1c73a3790 100644
--- a/lib/sync/debug.go
+++ b/lib/sync/debug.go
@@ -11,7 +11,6 @@ import (
"strconv"
"time"
- deadlock "github.com/sasha-s/go-deadlock"
"github.com/syncthing/syncthing/lib/logger"
)
@@ -22,8 +21,7 @@ var (
// We make an exception in this package and have an actual "if debug { ...
// }" variable, as it may be rather performance critical and does
// nonstandard things (from a debug logging PoV).
- debug = logger.DefaultLogger.ShouldDebug("sync")
- useDeadlock = false
+ debug = logger.DefaultLogger.ShouldDebug("sync")
)
func init() {
@@ -31,10 +29,4 @@ func init() {
threshold = time.Duration(n) * time.Millisecond
}
l.Debugf("Enabling lock logging at %v threshold", threshold)
-
- if n, _ := strconv.Atoi(os.Getenv("STDEADLOCKTIMEOUT")); n > 0 {
- deadlock.Opts.DeadlockTimeout = time.Duration(n) * time.Second
- l.Debugf("Enabling lock deadlocking at %v", deadlock.Opts.DeadlockTimeout)
- useDeadlock = true
- }
}