From cf1be887b60848840dceba82e1ae130be36f0e6a Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 8 Oct 2016 09:38:28 -0700 Subject: [PATCH] Switch DS dropouts to use `log` So it includes timestamps in the console output. --- driver_station_connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver_station_connection.go b/driver_station_connection.go index 2cd1ef3..a73eb49 100644 --- a/driver_station_connection.go +++ b/driver_station_connection.go @@ -324,7 +324,7 @@ func (dsConn *DriverStationConnection) handleTcpConnection() { dsConn.tcpConn.SetReadDeadline(time.Now().Add(time.Second * driverStationTcpLinkTimeoutSec)) _, err := dsConn.tcpConn.Read(buffer) if err != nil { - fmt.Printf("Error reading from connection for Team %d: %v\n", dsConn.TeamId, err.Error()) + log.Printf("Error reading from connection for Team %d: %v\n", dsConn.TeamId, err.Error()) dsConn.Close() mainArena.AllianceStations[dsConn.AllianceStation].DsConn = nil break