From: Sergey Matveev Date: Sun, 8 Jan 2017 10:25:01 +0000 (+0300) Subject: No need to log daemon listen event X-Git-Tag: 0.1~20 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1711756af58f5085a1e0bb5a81b82351d52c84f7;p=nncp.git No need to log daemon listen event --- diff --git a/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go b/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go index de2f936..66f553e 100644 --- a/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go +++ b/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go @@ -81,7 +81,6 @@ func main() { log.Fatalln("Can not listen:", err) } ln = netutil.LimitListener(ln, *maxConn) - ctx.LogI("daemon", nncp.SDS{"bind": *bind}, "listening") for { conn, err := ln.Accept() if err != nil { diff --git a/src/cypherpunks.ru/nncp/humanizer.go b/src/cypherpunks.ru/nncp/humanizer.go index 6fda358..06b33bd 100644 --- a/src/cypherpunks.ru/nncp/humanizer.go +++ b/src/cypherpunks.ru/nncp/humanizer.go @@ -150,8 +150,6 @@ func (ctx *Ctx) Humanize(s string) string { if err, exists := sds["err"]; exists { msg += ": " + err } - case "daemon": - msg = fmt.Sprintf("Daemon listening on %s", sds["bind"]) case "call-start": msg = fmt.Sprintf("Connected to %s", nodeS) case "call-finish":