aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
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:")