From 1711756af58f5085a1e0bb5a81b82351d52c84f7 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 8 Jan 2017 13:25:01 +0300 Subject: [PATCH] No need to log daemon listen event --- src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go | 1 - src/cypherpunks.ru/nncp/humanizer.go | 2 -- 2 files changed, 3 deletions(-) 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": -- 2.48.1