mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-10 06:06:47 -04:00
Switch DS dropouts to use log
So it includes timestamps in the console output.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user