1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
Kir Kolyshkin b7a95a3ce4 lcow: fix debug in startServiceVMIfNotRunning()
When go-1.11beta1 is used for building, the following error is
reported:

> 14:56:20 daemon\graphdriver\lcow\lcow.go:236: Debugf format %s reads
> arg #2, but call has 1 arg

While fixing this, let's also fix a few other things in this
very function (startServiceVMIfNotRunning):

1. Do not use fmt.Printf when not required.
2. Use `title` whenever possible.
3. Don't add `id` to messages as `title` already has it.
4. Remove duplicated colons.
5. Try to unify style of messages.
6. s/startservicevmifnotrunning/startServiceVMIfNotRunning/
...

In general, logging/debugging here is a mess and requires much more
love than I can give it at the moment. Areas for improvement:

1. Add a global var logger = logrus.WithField("storage-driver", "lcow")
and use it everywhere else in the code.
2. Use logger.WithField("id", id) whenever possible (same for "context"
and other similar fields).
3. Revise all the errors returned to be uniform.
4. Make use of errors.Wrap[f] whenever possible.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-07-12 13:42:23 -07:00
..
aufs aufs: fix Wrapf args 2018-07-11 15:52:22 +02:00
btrfs Standardized log messages accross the different storage drivers. 2018-03-27 14:37:30 +02:00
copy Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
devmapper Various code-cleanup 2018-05-23 17:50:54 +02:00
graphtest Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
lcow lcow: fix debug in startServiceVMIfNotRunning() 2018-07-12 13:42:23 -07:00
overlay When id is empty for overlay2/overlay, do not remove the directories. 2018-06-07 17:35:54 -07:00
overlay2 Update overlay2 to use naive diff for changes 2018-06-20 11:07:36 -07:00
overlayutils Add additional message when backendfs is extfs without d_type support 2018-05-18 10:32:47 +08:00
quota Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
register Add canonical import comment 2018-02-05 16:51:57 -05:00
vfs Various code-cleanup 2018-05-23 17:50:54 +02:00
windows Merge pull request #36738 from Microsoft/jjh/getlayerpath 2018-04-14 09:59:38 -07:00
zfs Various code-cleanup 2018-05-23 17:50:54 +02:00
counter.go graphdriver: Fix RefCounter memory leak 2018-02-09 10:26:06 +08:00
driver.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_freebsd.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_linux.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
driver_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fsdiff.go Add canonical import comment 2018-02-05 16:51:57 -05:00
plugin.go Move plugin client to separate interface 2018-05-30 15:22:10 -04:00
proxy.go Move plugin client creation to the extension point 2018-05-25 15:18:53 -04:00