(logOptMap map[string]string)
| 54 | } |
| 55 | |
| 56 | func JSONFileLogOptsValidate(logOptMap map[string]string) error { |
| 57 | for key := range logOptMap { |
| 58 | if !strutil.InStringSlice(JSONDriverLogOpts, key) { |
| 59 | log.L.Warnf("log-opt %s is ignored for json-file log driver", key) |
| 60 | } |
| 61 | } |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | func (jsonLogger *JSONLogger) Init(dataStore, ns, id string) error { |
| 66 | // Initialize the log file (https://github.com/containerd/nerdctl/issues/1071) |
nothing calls this directly
no test coverage detected
searching dependent graphs…