File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const (
53
53
retryWaitKey = "fluentd-retry-wait"
54
54
maxRetriesKey = "fluentd-max-retries"
55
55
asyncConnectKey = "fluentd-async-connect"
56
+ asyncStopKey = "fluentd-async-stop"
56
57
subSecondPrecisionKey = "fluentd-sub-second-precision"
57
58
)
58
59
@@ -118,6 +119,13 @@ func New(info logger.Info) (logger.Logger, error) {
118
119
}
119
120
}
120
121
122
+ asyncStop := false
123
+ if info .Config [asyncStopKey ] != "" {
124
+ if asyncStop , err = strconv .ParseBool (info .Config [asyncStopKey ]); err != nil {
125
+ return nil , err
126
+ }
127
+ }
128
+
121
129
subSecondPrecision := false
122
130
if info .Config [subSecondPrecisionKey ] != "" {
123
131
if subSecondPrecision , err = strconv .ParseBool (info .Config [subSecondPrecisionKey ]); err != nil {
@@ -134,6 +142,7 @@ func New(info logger.Info) (logger.Logger, error) {
134
142
RetryWait : retryWait ,
135
143
MaxRetry : maxRetries ,
136
144
Async : asyncConnect ,
145
+ AsyncStop : asyncStop ,
137
146
SubSecondPrecision : subSecondPrecision ,
138
147
}
139
148
@@ -199,6 +208,7 @@ func ValidateLogOpt(cfg map[string]string) error {
199
208
case retryWaitKey :
200
209
case maxRetriesKey :
201
210
case asyncConnectKey :
211
+ case asyncStopKey :
202
212
case subSecondPrecisionKey :
203
213
// Accepted
204
214
default :
You can’t perform that action at this time.
0 commit comments