Skip to content
Snippets Groups Projects
Commit 361f46f5 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

test change

parent 1c29e075
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,6 @@ import ( ...@@ -25,8 +25,6 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"os" "os"
"strconv"
"strings"
"google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpclog"
) )
...@@ -144,27 +142,27 @@ func newLoggerV2() LoggerV2 { ...@@ -144,27 +142,27 @@ func newLoggerV2() LoggerV2 {
warningW := ioutil.Discard warningW := ioutil.Discard
infoW := ioutil.Discard infoW := ioutil.Discard
logLevel := os.Getenv("GRPC_GO_LOG_SEVERITY_LEVEL") // logLevel := os.Getenv("GRPC_GO_LOG_SEVERITY_LEVEL")
switch logLevel { // switch logLevel {
case "", "ERROR", "error": // If env is unset, set level to ERROR. // case "", "ERROR", "error": // If env is unset, set level to ERROR.
errorW = os.Stderr // errorW = os.Stderr
case "WARNING", "warning": // case "WARNING", "warning":
warningW = os.Stderr // warningW = os.Stderr
case "INFO", "info": // case "INFO", "info":
infoW = os.Stderr // infoW = os.Stderr
} // }
var v int // var v int
vLevel := os.Getenv("GRPC_GO_LOG_VERBOSITY_LEVEL") // vLevel := os.Getenv("GRPC_GO_LOG_VERBOSITY_LEVEL")
if vl, err := strconv.Atoi(vLevel); err == nil { // if vl, err := strconv.Atoi(vLevel); err == nil {
v = vl // v = vl
} // }
jsonFormat := strings.EqualFold(os.Getenv("GRPC_GO_LOG_FORMATTER"), "json") // jsonFormat := strings.EqualFold(os.Getenv("GRPC_GO_LOG_FORMATTER"), "json")
return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{ return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{
verbose: v, verbose: 0,
jsonFormat: jsonFormat, jsonFormat: false,
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment