@@ -236,20 +236,20 @@ func validateYamlKeys(fileName string, config_map map[interface{}]interface{}) {
236236 for k , v := range config_map {
237237 if _ , ok := k .(string ); ! ok {
238238 errorText := fmt .Sprintf ("config error, key is not of type string: %v" , k )
239- logger .Debugf (errorText )
239+ logger .Debug (errorText )
240240 panic (newRateLimitConfigError (fileName , errorText ))
241241 }
242242 if _ , ok := validKeys [k .(string )]; ! ok {
243243 errorText := fmt .Sprintf ("config error, unknown key '%s'" , k )
244- logger .Debugf (errorText )
244+ logger .Debug (errorText )
245245 panic (newRateLimitConfigError (fileName , errorText ))
246246 }
247247 switch v := v .(type ) {
248248 case []interface {}:
249249 for _ , e := range v {
250250 if _ , ok := e .(map [interface {}]interface {}); ! ok {
251251 errorText := fmt .Sprintf ("config error, yaml file contains list of type other than map: %v" , e )
252- logger .Debugf (errorText )
252+ logger .Debug (errorText )
253253 panic (newRateLimitConfigError (fileName , errorText ))
254254 }
255255 element := e .(map [interface {}]interface {})
@@ -268,7 +268,7 @@ func validateYamlKeys(fileName string, config_map map[interface{}]interface{}) {
268268 case nil :
269269 default :
270270 errorText := "error checking config"
271- logger .Debugf (errorText )
271+ logger .Debug (errorText )
272272 panic (newRateLimitConfigError (fileName , errorText ))
273273 }
274274 }
@@ -571,7 +571,7 @@ func ConfigFileContentToYaml(fileName, content string) *YamlRoot {
571571 err := yaml .Unmarshal ([]byte (content ), & any )
572572 if err != nil {
573573 errorText := fmt .Sprintf ("error loading config file: %s" , err .Error ())
574- logger .Debugf (errorText )
574+ logger .Debug (errorText )
575575 panic (newRateLimitConfigError (fileName , errorText ))
576576 }
577577 validateYamlKeys (fileName , any )
@@ -580,7 +580,7 @@ func ConfigFileContentToYaml(fileName, content string) *YamlRoot {
580580 err = yaml .Unmarshal ([]byte (content ), & root )
581581 if err != nil {
582582 errorText := fmt .Sprintf ("error loading config file: %s" , err .Error ())
583- logger .Debugf (errorText )
583+ logger .Debug (errorText )
584584 panic (newRateLimitConfigError (fileName , errorText ))
585585 }
586586
0 commit comments