From 2fd1dca9055126f7b9e8a7dfaabe02bd3c645f85 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 2 Dec 2016 12:56:14 +0100 Subject: [PATCH] lib/connections: Fix odd logging, forgot to call function --- lib/connections/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connections/service.go b/lib/connections/service.go index a0d88dc1b..527f39c43 100644 --- a/lib/connections/service.go +++ b/lib/connections/service.go @@ -204,7 +204,7 @@ next: // The Model will return an error for devices that we don't want to // have a connection with for whatever reason, for example unknown devices. if err := s.model.OnHello(remoteID, c.RemoteAddr(), hello); err != nil { - l.Infof("Connection from %s at %s (%s) rejected: %v", remoteID, c.RemoteAddr(), c.Type, err) + l.Infof("Connection from %s at %s (%s) rejected: %v", remoteID, c.RemoteAddr(), c.Type(), err) c.Close() continue }