Skip to content

Commit 6948ab4

Browse files
committed
api/types: hostconfig: fix LogMode enum
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 5ae1c1f commit 6948ab4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/types/container/host_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ type LogMode string
341341

342342
// Available logging modes
343343
const (
344-
LogModeUnset = ""
344+
LogModeUnset LogMode = ""
345345
LogModeBlocking LogMode = "blocking"
346346
LogModeNonBlock LogMode = "non-blocking"
347347
)

daemon/logger/loggerutils/cache/local_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func WithLocalCache(l logger.Logger, info logger.Info) (logger.Logger, error) {
3636
return nil, errors.Wrap(err, "error initializing local log cache driver")
3737
}
3838

39-
if info.Config["mode"] == container.LogModeUnset || container.LogMode(info.Config["mode"]) == container.LogModeNonBlock {
39+
if container.LogMode(info.Config["mode"]) == container.LogModeUnset || container.LogMode(info.Config["mode"]) == container.LogModeNonBlock {
4040
var size int64 = -1
4141
if s, exists := info.Config["max-buffer-size"]; exists {
4242
size, err = units.RAMInBytes(s)

0 commit comments

Comments
 (0)