]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/server/tcp.go
Language mistakes and stylistic fixes
[govpn.git] / src / cypherpunks.ru / govpn / server / tcp.go
index 59eda53cb72b4bd3c16ccd7ff542312e342b0787..472c74b06c20e88957f906483c627382f7316294 100644 (file)
@@ -102,7 +102,7 @@ func (s *Server) handleTCP(conn net.Conn) {
                                s.LogFields(),
                        ).WithError(
                                err,
-                       ).Debug("Can't read connection: either EOFed or timeouted")
+                       ).Debug("Can not read connection: either EOFed or timeouted")
                        break
                }
                prev += n
@@ -112,11 +112,15 @@ func (s *Server) handleTCP(conn net.Conn) {
                                fields,
                        ).WithFields(
                                s.LogFields(),
-                       ).WithError(err).Debug("Couldn't lookup for peer in ids")
+                       ).WithError(err).Debug("Can not lookup for peer in ids")
                        continue
                }
                if peerID == nil {
-                       s.logger.WithFields(fields).WithFields(s.LogFields()).Debug("Couldn't find peer")
+                       s.logger.WithFields(
+                               fields,
+                       ).WithFields(
+                               s.LogFields(),
+                       ).Debug("Can not find peer")
                        continue
                }
                if hs == nil {
@@ -139,7 +143,7 @@ func (s *Server) handleTCP(conn net.Conn) {
                                fields,
                        ).WithError(err).WithFields(
                                s.LogFields(),
-                       ).Error("Can't create new peer")
+                       ).Error("Can not create new peer")
                        continue
                }
                prev = 0
@@ -253,7 +257,7 @@ func (s *Server) handleTCP(conn net.Conn) {
                                s.LogFields(),
                        ).WithError(
                                err,
-                       ).Debug("Can't read connection: either EOFed or timeouted")
+                       ).Debug("Can not read connection: either EOFed or timeouted")
                        break
                }
                prev += n