diff options
Diffstat (limited to 'weed/util/grace/pprof.go')
| -rw-r--r-- | weed/util/grace/pprof.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/util/grace/pprof.go b/weed/util/grace/pprof.go index 14686bfc8..68c3920af 100644 --- a/weed/util/grace/pprof.go +++ b/weed/util/grace/pprof.go @@ -5,14 +5,14 @@ import ( "runtime" "runtime/pprof" - "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/chrislusf/seaweedfs/weed/util/log" ) func SetupProfiling(cpuProfile, memProfile string) { if cpuProfile != "" { f, err := os.Create(cpuProfile) if err != nil { - glog.Fatal(err) + log.Fatal(err) } pprof.StartCPUProfile(f) OnInterrupt(func() { @@ -23,7 +23,7 @@ func SetupProfiling(cpuProfile, memProfile string) { runtime.MemProfileRate = 1 f, err := os.Create(memProfile) if err != nil { - glog.Fatal(err) + log.Fatal(err) } OnInterrupt(func() { pprof.WriteHeapProfile(f) |
