Skip to content

Commit

Permalink
backend: do not log in Register
Browse files Browse the repository at this point in the history
various backends call backend.Register, which will log a message.
because Register is called in init() functions before main() runs,
glog's 'logtostderr' flag is not set yet, so glog attemps to create log
files in $TMPDIR. this directory doesn't exist in the new busybox base
image, and we don't want to write log files anyway.
  • Loading branch information
mischief authored and tomdee committed Sep 22, 2016
1 parent 3a9ed14 commit 174e156
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"strings"
"sync"

log "github.com/golang/glog"
"golang.org/x/net/context"

"github.com/coreos/flannel/subnet"
Expand Down Expand Up @@ -96,6 +95,5 @@ func (bm *manager) Wait() {
}

func Register(name string, ctor BackendCtor) {
log.Infof("Register: %v", name)
backendCtors[name] = ctor
}

0 comments on commit 174e156

Please sign in to comment.