Browse Source

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

Jakob Borg 9 years ago
parent
commit
2fd1dca905
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/connections/service.go

+ 1 - 1
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
 		}