Add other log system. This fixes and closes
@@ -15,9 +15,14 @@ package restapi
import (
"crypto/tls"
"encoding/json"
+ "io"
+ "io/ioutil"
+ "log"
"math"
"net/http"
+ "google.golang.org/grpc/grpclog"
+
jsonpatch "github.com/evanphx/json-patch"
errors "github.com/go-openapi/errors"
runtime "github.com/go-openapi/runtime"
@@ -40,6 +45,12 @@ import (
"github.com/weaviate/weaviate/restapi/operations/model_manifests"
)
+func init() {
+ var discard io.Writer = ioutil.Discard
+ var myGRPCLogger grpclog.Logger = log.New(discard, "", log.LstdFlags)
+ grpclog.SetLogger(myGRPCLogger)
+}
+
func configureFlags(api *operations.WeaviateAPI) {
// api.CommandLineOptionsGroups = []swag.CommandLineOptionsGroup{ ... }
}
