Commits

Cédric Bonhomme committed 67b3485 Draft

Erros are logged

Comments (0)

Files changed (1)

     fmt.Println(v...)
 }
 
-
 func ServerHandler(connection net.Conn) {
     // Wait for messages from the server
     for {
     // Open connection
     conn, err := net.Dial("tcp", service)
     if err != nil {
-        fmt.Println("Error", err.Error())
+        Log("Error", err.Error())
         return // terminate program
     }
 
         if trimmedInput == "Q" {
             return
         }
-
-        
     }
 }