From 659eb99c0faf224237196c5366f1d289d19f4534 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Wed, 9 Jan 2019 11:04:23 +0000 Subject: [PATCH] Remove redundant logging dependency --- core/osutil/command.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/osutil/command.go b/core/osutil/command.go index 2cdb292d..b5fa59aa 100644 --- a/core/osutil/command.go +++ b/core/osutil/command.go @@ -14,10 +14,9 @@ package osutil import ( "bytes" "errors" + "fmt" "os/exec" "time" - - "github.com/documize/community/core/log" ) var errTimeout = errors.New("conversion timelimit exceeded") @@ -39,7 +38,7 @@ func CommandWithTimeout(command *exec.Cmd, timeout time.Duration) ([]byte, error select { case <-time.After(timeout): if err := command.Process.Kill(); err != nil { - log.Error("failed to kill: ", err) + fmt.Errorf("failed to kill: ", err) } <-done // prevent memory leak //fmt.Println("DEBUG timeout")