@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user