aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-27 15:02:21 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-27 15:02:21 +0300
commitbc7e2d9a1c871e3fbce932f9695fc24083bc2cc4 (patch)
tree89f104f59ee6aa33ea41140c8472ff5ba95f97a9 /debug
parent60e3fe392711ef233aa68a062a7ee96d145d2cb4 (diff)
Add locks and other sync stuff
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 b7d97bb..573cff7 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -95,7 +95,7 @@ func PrettyPanic(panic interface{}) {
var buf bytes.Buffer
fmt.Fprintln(&buf, panic)
buf.Write(debug.Stack())
- err := ioutil.WriteFile(traceFile, buf.Bytes(), 0644)
+ err := ioutil.WriteFile(traceFile, buf.Bytes(), 0640)
if err != nil {
fmt.Println("Saving the stack trace to", traceFile, "failed:")