Skip to content

Commit

Permalink
log formatting (info -> infof)
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Nov 21, 2014
1 parent 8bf7948 commit 34da5f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func listenAndServeAPI(node *core.IpfsNode, req cmds.Request, addr ma.Multiaddr)
return
}

log.Info("terminating daemon at %s...", addr)
log.Infof("terminating daemon at %s...", addr)
server.Shutdown <- true
}()

Expand Down
4 changes: 2 additions & 2 deletions net/conn/listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (l *listener) Close() error {

// close called by ContextCloser.Close
func (l *listener) close() error {
log.Info("listener closing: %s %s", l.local, l.maddr)
log.Infof("listener closing: %s %s", l.local, l.maddr)
return l.Listener.Close()
}

Expand Down Expand Up @@ -75,7 +75,7 @@ func (l *listener) listen() {
}

for {
log.Info("swarm listening on %s -- %v\n", l.Multiaddr(), l.Listener)
log.Infof("swarm listening on %s -- %v\n", l.Multiaddr(), l.Listener)
maconn, err := l.Listener.Accept()
if err != nil {

Expand Down

0 comments on commit 34da5f0

Please sign in to comment.