aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-27 15:11:27 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-27 15:11:27 +0300
commitb6b50e8e1df54e8ad0a4b5449333ec5e987966ce (patch)
tree06c6ebfa31c03c2fc49918a61fa866dba64515b1
parent6f54066c43172fe0197e82fb1034c9ae55d1e1f2 (diff)
Add message when exiting due to potential deadlock
-rw-r--r--debug/debug.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/debug.go b/debug/debug.go
index 741bb7a..28fe8eb 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -63,6 +63,7 @@ func Initialize() {
if OnRecover != nil {
OnRecover()
}
+ _, _ = fmt.Fprintf(os.Stderr, "Potential deadlock detected. See %s/deadlock.log for more information.", LogDirectory)
os.Exit(88)
}
_, err = fmt.Fprintf(deadlocks, "======================= Debug init @ %s =======================\n", time.Now().Format("2006-01-02 15:04:05"))