diff options
Diffstat (limited to 'weed/util/grace')
| -rw-r--r-- | weed/util/grace/pprof.go | 6 | ||||
| -rw-r--r-- | weed/util/grace/signal_handling.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/weed/util/grace/pprof.go b/weed/util/grace/pprof.go index 620184c9b..6dd2bb5d0 100644 --- a/weed/util/grace/pprof.go +++ b/weed/util/grace/pprof.go @@ -5,14 +5,14 @@ import ( "runtime" "runtime/pprof" - "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/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) } runtime.SetBlockProfileRate(1) runtime.SetMutexProfileFraction(1) @@ -44,7 +44,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) diff --git a/weed/util/grace/signal_handling.go b/weed/util/grace/signal_handling.go index 0fc0f43e1..4e6ef456f 100644 --- a/weed/util/grace/signal_handling.go +++ b/weed/util/grace/signal_handling.go @@ -4,7 +4,7 @@ package grace import ( - "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/seaweedfs/weed/util/log" "os" "os/signal" "reflect" @@ -45,7 +45,7 @@ func init() { } else { interruptHookLock.RLock() for _, hook := range interruptHooks { - glog.V(4).Infof("exec interrupt hook func name:%s", GetFunctionName(hook)) + log.V(-1).Infof("exec interrupt hook func name:%s", GetFunctionName(hook)) hook() } interruptHookLock.RUnlock() |
