aboutsummaryrefslogtreecommitdiff
path: root/exec.go
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-07-10 16:34:06 +0900
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-07-10 16:34:06 +0900
commit6450d0f81676df5c654819545bf941786554407a (patch)
tree0b860a6457ac75a2575bbfcbf13aced1520122f4 /exec.go
parent04fc309c37abdfa7ab119837acfb7fe2ea073f60 (diff)
downloadkati-6450d0f81676df5c654819545bf941786554407a.tar.gz
use github.com/golang/glog
Diffstat (limited to 'exec.go')
-rw-r--r--exec.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/exec.go b/exec.go
index d3f8e05..712b917 100644
--- a/exec.go
+++ b/exec.go
@@ -18,6 +18,8 @@ import (
"fmt"
"os"
"time"
+
+ "github.com/golang/glog"
)
// Executor manages execution of makefile rules.
@@ -44,7 +46,7 @@ type Executor struct {
func (ex *Executor) makeJobs(n *DepNode, neededBy *job) error {
output, _ := existsInVPATH(ex.ctx.ev, n.Output)
if neededBy != nil {
- logf("MakeJob: %s for %s", output, neededBy.n.Output)
+ glog.V(1).Infof("MakeJob: %s for %s", output, neededBy.n.Output)
}
n.Output = output
ex.buildCnt++
@@ -63,7 +65,7 @@ func (ex *Executor) makeJobs(n *DepNode, neededBy *job) error {
neededBy.numDeps--
}
} else {
- logf("%s already done: %d", j.n.Output, j.outputTs)
+ glog.Infof("%s already done: %d", j.n.Output, j.outputTs)
if neededBy != nil {
ex.wm.ReportNewDep(j, neededBy)
}
@@ -97,7 +99,7 @@ func (ex *Executor) makeJobs(n *DepNode, neededBy *job) error {
}
deps = append(deps, d)
}
- logf("new: %s (%d)", j.n.Output, j.numDeps)
+ glog.V(1).Infof("new: %s (%d)", j.n.Output, j.numDeps)
for _, d := range deps {
ex.trace = append(ex.trace, d.Output)
@@ -113,7 +115,7 @@ func (ex *Executor) makeJobs(n *DepNode, neededBy *job) error {
}
func (ex *Executor) reportStats() {
- if !LogFlag && !PeriodicStatsFlag {
+ if !PeriodicStatsFlag {
return
}