@@ -170,64 +170,64 @@ func (p *BatchPolicy) mapDynamic(dynConfig *DynConfig) *BatchPolicy {
170
170
if dynConfig .config .Dynamic .BatchRead .ReadModeAp != nil {
171
171
configValue := mapReadModeAPToReadModeAP (* dynConfig .config .Dynamic .BatchRead .ReadModeAp )
172
172
p .ReadModeAP = configValue
173
- if dynConfig .configInitialized .Load () {
174
- logger .Logger .Info ("ReadModeAP set to %s" , configValue .String ())
173
+ if dynConfig .logUpdate .Load () {
174
+ logger .Logger .Debug ("ReadModeAP set to %s" , configValue .String ())
175
175
}
176
176
}
177
177
if dynConfig .config .Dynamic .BatchRead .ReadModeSc != nil {
178
178
configValue := mapReadModeSCToReadModeSC (* dynConfig .config .Dynamic .BatchRead .ReadModeSc )
179
179
p .ReadModeSC = configValue
180
- if dynConfig .configInitialized .Load () {
181
- logger .Logger .Info ("ReadModeSC set to %s" , configValue .String ())
180
+ if dynConfig .logUpdate .Load () {
181
+ logger .Logger .Debug ("ReadModeSC set to %s" , configValue .String ())
182
182
}
183
183
}
184
184
if dynConfig .config .Dynamic .BatchRead .TotalTimeout != nil {
185
185
configValue := time .Duration (* dynConfig .config .Dynamic .BatchRead .TotalTimeout ) * time .Millisecond
186
186
p .TotalTimeout = configValue
187
- if dynConfig .configInitialized .Load () {
188
- logger .Logger .Info ("TotalTimeout set to %s" , configValue .String ())
187
+ if dynConfig .logUpdate .Load () {
188
+ logger .Logger .Debug ("TotalTimeout set to %s" , configValue .String ())
189
189
}
190
190
}
191
191
if dynConfig .config .Dynamic .BatchRead .SocketTimeout != nil {
192
192
configValue := time .Duration (* dynConfig .config .Dynamic .BatchRead .SocketTimeout ) * time .Millisecond
193
193
p .SocketTimeout = configValue
194
- if dynConfig .configInitialized .Load () {
195
- logger .Logger .Info ("SocketTimeout set to %s" , configValue .String ())
194
+ if dynConfig .logUpdate .Load () {
195
+ logger .Logger .Debug ("SocketTimeout set to %s" , configValue .String ())
196
196
}
197
197
}
198
198
if dynConfig .config .Dynamic .BatchRead .MaxRetries != nil {
199
199
configValue := * dynConfig .config .Dynamic .BatchRead .MaxRetries
200
200
p .MaxRetries = configValue
201
- if dynConfig .configInitialized .Load () {
202
- logger .Logger .Info ("MaxRetries set to %d" , configValue )
201
+ if dynConfig .logUpdate .Load () {
202
+ logger .Logger .Debug ("MaxRetries set to %d" , configValue )
203
203
}
204
204
}
205
205
if dynConfig .config .Dynamic .BatchRead .SleepBetweenRetries != nil {
206
206
configValue := time .Duration (* dynConfig .config .Dynamic .BatchRead .SleepBetweenRetries ) * time .Millisecond
207
207
p .SleepBetweenRetries = configValue
208
- if dynConfig .configInitialized .Load () {
209
- logger .Logger .Info ("SleepBetweenRetries set to %s" , configValue .String ())
208
+ if dynConfig .logUpdate .Load () {
209
+ logger .Logger .Debug ("SleepBetweenRetries set to %s" , configValue .String ())
210
210
}
211
211
}
212
212
if dynConfig .config .Dynamic .BatchRead .AllowInline != nil {
213
213
configValue := * dynConfig .config .Dynamic .BatchRead .AllowInline
214
214
p .AllowInline = configValue
215
- if dynConfig .configInitialized .Load () {
216
- logger .Logger .Info ("AllowInline set to %t" , configValue )
215
+ if dynConfig .logUpdate .Load () {
216
+ logger .Logger .Debug ("AllowInline set to %t" , configValue )
217
217
}
218
218
}
219
219
if dynConfig .config .Dynamic .BatchRead .AllowInlineSSD != nil {
220
220
configValue := * dynConfig .config .Dynamic .BatchRead .AllowInlineSSD
221
221
p .AllowInlineSSD = configValue
222
- if dynConfig .configInitialized .Load () {
223
- logger .Logger .Info ("AllowInlineSSD set to %t" , configValue )
222
+ if dynConfig .logUpdate .Load () {
223
+ logger .Logger .Debug ("AllowInlineSSD set to %t" , configValue )
224
224
}
225
225
}
226
226
if dynConfig .config .Dynamic .BatchRead .RespondAllKeys != nil {
227
227
configValue := * dynConfig .config .Dynamic .BatchRead .RespondAllKeys
228
228
p .RespondAllKeys = configValue
229
- if dynConfig .configInitialized .Load () {
230
- logger .Logger .Info ("RespondAllKeys set to %t" , configValue )
229
+ if dynConfig .logUpdate .Load () {
230
+ logger .Logger .Debug ("RespondAllKeys set to %t" , configValue )
231
231
}
232
232
}
233
233
}
0 commit comments