(logOptMap map[string]string)
| 79 | ) |
| 80 | |
| 81 | func FluentdLogOptsValidate(logOptMap map[string]string) error { |
| 82 | for key := range logOptMap { |
| 83 | if !strutil.InStringSlice(FluentdLogOpts, key) { |
| 84 | log.L.Warnf("log-opt %s is ignored for fluentd log driver", key) |
| 85 | } |
| 86 | } |
| 87 | if _, ok := logOptMap[fluentAddress]; !ok { |
| 88 | log.L.Warnf("%s is missing for fluentd log driver, the default value %s:%d will be used", fluentAddress, defaultHost, defaultPort) |
| 89 | } |
| 90 | return nil |
| 91 | } |
| 92 | |
| 93 | type fluentdLocation struct { |
| 94 | protocol string |
nothing calls this directly
no test coverage detected
searching dependent graphs…