aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-27 15:44:01 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-27 15:44:01 +0300
commitdaf238fd7133117a0049ea6fbcacd28b4e19fa1c (patch)
tree3e4debf47157c09996e0b89b963e98737d57bd42 /debug
parent08d99d776d359aa1ef056e4455f82d92b6940507 (diff)
DOn't print debug init to log file when not logging to file
Diffstat (limited to 'debug')
-rw-r--r--debug/debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/debug.go b/debug/debug.go
index 28fe8eb..3cd1157 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -50,9 +50,9 @@ func Initialize() {
if err != nil {
panic(err)
}
+ _, _ = fmt.Fprintf(writer, "======================= Debug init @ %s =======================\n", time.Now().Format("2006-01-02 15:04:05"))
}
- _, _ = fmt.Fprintf(writer, "======================= Debug init @ %s =======================\n", time.Now().Format("2006-01-02 15:04:05"))
if DeadlockDetection {
deadlocks, err := os.OpenFile(filepath.Join(LogDirectory, "deadlock.log"), os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0640)
if err != nil {