@@ -19,7 +19,6 @@ package logdb
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"sort"
|
||||
@@ -30,6 +29,7 @@ import (
|
||||
influxdbClient "github.com/influxdata/influxdb/client/v2"
|
||||
|
||||
"github.com/fission/fission"
|
||||
"github.com/fission/fission/fission/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -17,9 +17,8 @@ limitations under the License.
|
||||
package logdb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -55,6 +54,5 @@ func GetLogDB(dbType string, serverURL string) (LogDatabase, error) {
|
||||
case INFLUXDB:
|
||||
return NewInfluxDB(serverURL)
|
||||
}
|
||||
log.Fatalf("Log database type is incorrect, now only support %s", INFLUXDB)
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("log database type is incorrect, now only support %s", INFLUXDB)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user