Switch DS dropouts to use log

So it includes timestamps in the console output.
This commit is contained in:
Kunal Mehta
2016-10-08 09:38:28 -07:00
parent 3be13a869d
commit cf1be887b6

View File

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