Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -36,7 +36,7 @@ func WithLocalCache(l logger.Logger, info logger.Info) (logger.Logger, error) {
|
| 36 | 36 |
return nil, errors.Wrap(err, "error initializing local log cache driver") |
| 37 | 37 |
} |
| 38 | 38 |
|
| 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 {
|
|
| 40 | 40 |
var size int64 = -1 |
| 41 | 41 |
if s, exists := info.Config["max-buffer-size"]; exists {
|
| 42 | 42 |
size, err = units.RAMInBytes(s) |