jobrun: log through abstract logger interface instead of stderr

This commit is contained in:
Christian Schwarz
2017-05-03 17:48:29 +02:00
parent 77f749112c
commit 3b6d79ec67
2 changed files with 14 additions and 7 deletions

View File

@ -5,6 +5,8 @@ import (
"fmt"
"github.com/urfave/cli"
"github.com/zrepl/zrepl/jobrun"
"log"
"os"
"sync"
"time"
)
@ -30,7 +32,8 @@ func main() {
return
}
runner = jobrun.NewJobRunner()
jobrunLogger := log.New(os.Stderr, "jobrun: ", log.LUTC|log.Ldate|log.Ltime)
runner = jobrun.NewJobRunner(jobrunLogger)
return
}
app.Commands = []cli.Command{