lib/connections: Fix odd logging, forgot to call function

This commit is contained in:
Jakob Borg 2016-12-02 12:56:14 +01:00
parent e3cf718998
commit 2fd1dca905

View File

@ -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
}