aboutsummaryrefslogtreecommitdiff
path: root/internal/process/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/process/manager.go')
-rw-r--r--internal/process/manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/process/manager.go b/internal/process/manager.go
index babfceed..274e63df 100644
--- a/internal/process/manager.go
+++ b/internal/process/manager.go
@@ -12,11 +12,11 @@ import (
"sync"
"time"
- log "gopkg.in/clog.v1"
+ log "unknwon.dev/clog/v2"
)
var (
- ErrExecTimeout = errors.New("Process execution timeout")
+ ErrExecTimeout = errors.New("process execution timeout")
)
const DEFAULT_TIMEOUT = 60 * time.Second
@@ -101,7 +101,7 @@ func ExecDir(timeout time.Duration, dir, desc, cmdName string, args ...string) (
select {
case <-time.After(timeout):
if errKill := Kill(pid); errKill != nil {
- log.Error(2, "Fail to kill timeout process [pid: %d, desc: %s]: %v", pid, desc, errKill)
+ log.Error("Failed to kill timeout process [pid: %d, desc: %s]: %v", pid, desc, errKill)
}
<-done
return "", ErrExecTimeout.Error(), ErrExecTimeout