mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
log formatting (info -> infof)
This commit is contained in:
@ -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
|
||||
}()
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user