Skip to content

Commit 7f708ed

Browse files
committed
Merge pull request docker-archive-public#2931 from dgageot/remove-annoying-log
Remove spurious log that adds no value and make ITs fail sometimes because of an additional line
2 parents 760d07e + b4209ee commit 7f708ed

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libmachine/drivers/rpc/client_driver.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func (f *DefaultRPCClientDriverFactory) Close() error {
109109

110110
for _, openedDriver := range f.openedDrivers {
111111
if err := openedDriver.close(); err != nil {
112-
log.Warnf("Error closing a plugin driver: %s", err)
112+
// No need to display an error.
113+
// There's nothing we can do and it doesn't add value to the user.
113114
}
114115
}
115116
f.openedDrivers = []*RPCClientDriver{}
@@ -213,14 +214,9 @@ func (c *RPCClientDriver) close() error {
213214
}
214215

215216
log.Debug("Successfully made call to close driver server")
216-
217217
log.Debug("Making call to close connection to plugin binary")
218218

219-
if err := c.plugin.Close(); err != nil {
220-
return err
221-
}
222-
223-
return nil
219+
return c.plugin.Close()
224220
}
225221

226222
// Helper method to make requests which take no arguments and return simply a

0 commit comments

Comments
 (0)