summaryrefslogtreecommitdiffstats
path: root/modules/pprof
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pprof')
-rw-r--r--modules/pprof/pprof.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pprof/pprof.go b/modules/pprof/pprof.go
index 7f4fc653f3..e02c2d0f2a 100644
--- a/modules/pprof/pprof.go
+++ b/modules/pprof/pprof.go
@@ -17,12 +17,12 @@ import (
func DumpMemProfileForUsername(pprofDataPath, username string) {
f, err := ioutil.TempFile(pprofDataPath, fmt.Sprintf("memprofile_%s_", username))
if err != nil {
- log.GitLogger.Fatal(4, "Could not create memory profile: %v", err)
+ log.GitLogger.Fatal("Could not create memory profile: %v", err)
}
defer f.Close()
runtime.GC() // get up-to-date statistics
if err := pprof.WriteHeapProfile(f); err != nil {
- log.GitLogger.Fatal(4, "Could not write memory profile: %v", err)
+ log.GitLogger.Fatal("Could not write memory profile: %v", err)
}
}
@@ -31,7 +31,7 @@ func DumpMemProfileForUsername(pprofDataPath, username string) {
func DumpCPUProfileForUsername(pprofDataPath, username string) func() {
f, err := ioutil.TempFile(pprofDataPath, fmt.Sprintf("cpuprofile_%s_", username))
if err != nil {
- log.GitLogger.Fatal(4, "Could not create cpu profile: %v", err)
+ log.GitLogger.Fatal("Could not create cpu profile: %v", err)
}
pprof.StartCPUProfile(f)