Merge pull request #5235 from testwill/fmt

chore: fmt modify
This commit is contained in:
Ming Deng
2023-06-08 22:40:24 +08:00
committed by GitHub
8 changed files with 15 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ func (p *LogProject) ListLogStore() (storeNames []string, err error) {
"x-sls-bodyrawsize": "0",
}
uri := fmt.Sprintf("/logstores")
uri := "/logstores"
r, err := request(p, "GET", uri, h, nil)
if err != nil {
return

View File

@@ -81,7 +81,7 @@ func (el *esLogger) Init(config string) error {
if len(el.Formatter) > 0 {
fmtr, ok := logs.GetFormatter(el.Formatter)
if !ok {
return errors.New(fmt.Sprintf("the formatter with name: %s not found", el.Formatter))
return fmt.Errorf("the formatter with name: %s not found", el.Formatter)
}
el.formatter = fmtr
}