api/types: hostconfig: fix LogMode enum
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5ae1c1f4cf
commit
6948ab4fa1
2 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ type LogMode string
|
|||
|
||||
// Available logging modes
|
||||
const (
|
||||
LogModeUnset = ""
|
||||
LogModeUnset LogMode = ""
|
||||
LogModeBlocking LogMode = "blocking"
|
||||
LogModeNonBlock LogMode = "non-blocking"
|
||||
)
|
||||
|
|
|
@ -36,7 +36,7 @@ func WithLocalCache(l logger.Logger, info logger.Info) (logger.Logger, error) {
|
|||
return nil, errors.Wrap(err, "error initializing local log cache driver")
|
||||
}
|
||||
|
||||
if info.Config["mode"] == container.LogModeUnset || container.LogMode(info.Config["mode"]) == container.LogModeNonBlock {
|
||||
if container.LogMode(info.Config["mode"]) == container.LogModeUnset || container.LogMode(info.Config["mode"]) == container.LogModeNonBlock {
|
||||
var size int64 = -1
|
||||
if s, exists := info.Config["max-buffer-size"]; exists {
|
||||
size, err = units.RAMInBytes(s)
|
||||
|
|
Loading…
Reference in a new issue