@@ -243,7 +243,7 @@ func (d *parentDriver) acceptConnections() {
243243 if err != nil {
244244 // Check if the error is due to the listener being closed, which is expected during cleanup
245245 if errors .Is (err , io .EOF ) || strings .Contains (err .Error (), "use of closed network connection" ) {
246- logrus .Debugf ("listener closed, stopping accept loop" )
246+ logrus .Debug ("listener closed, stopping accept loop" )
247247 return
248248 }
249249 logrus .Errorf ("accepting connection: %v" , err )
@@ -271,9 +271,9 @@ func (d *parentDriver) handleConnection(conn net.Conn) {
271271
272272 // Use the AcceptStdio function to stream packets between the Unix socket and the virtual network
273273 // This will handle the connection and forward packets in both directions
274- logrus .Debugf ("forwarding packets between Unix socket and virtual network using VfkitProtocol" )
274+ logrus .Debug ("forwarding packets between Unix socket and virtual network using VfkitProtocol" )
275275 if err := vn .AcceptStdio (d .ctx , conn ); err != nil {
276- logrus .Debugf (err . Error () )
276+ logrus .Debug (err )
277277 if errors .Is (err , io .EOF ) {
278278 // This is expected when the child process exits
279279 logrus .Debugf ("child process exited, connection closed: %v" , err )
@@ -286,7 +286,7 @@ func (d *parentDriver) handleConnection(conn net.Conn) {
286286// createCleanupFunc creates a cleanup function for the virtual network
287287func (d * parentDriver ) createCleanupFunc (vn * virtualnetwork.VirtualNetwork ) func () error {
288288 return func () error {
289- logrus .Debugf ("closing gvisor-tap-vsock virtual network" )
289+ logrus .Debug ("closing gvisor-tap-vsock virtual network" )
290290 // The VirtualNetwork struct doesn't have an explicit Close method,
291291 // but we'll keep a reference to it to prevent garbage collection
292292 _ = vn
@@ -301,7 +301,7 @@ func (d *parentDriver) createCleanupFunc(vn *virtualnetwork.VirtualNetwork) func
301301 }
302302 }
303303
304- logrus .Debugf ("closed gvisor-tap-vsock virtual network" )
304+ logrus .Debug ("closed gvisor-tap-vsock virtual network" )
305305 return nil
306306 }
307307}
0 commit comments