You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/05/31 02:07:24 UTC

[apisix-go-plugin-runner] 17/22: chore: increase log level and add -race flag

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-go-plugin-runner.git

commit f9169fbacbb4634c1139e3f95106f6d5ac574243
Author: spacewander <sp...@gmail.com>
AuthorDate: Wed May 26 11:17:08 2021 +0800

    chore: increase log level and add -race flag
---
 Makefile            | 2 +-
 internal/log/log.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 3fba8fc..1c37ad7 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ GO_LDFLAGS ?= "-X '$(VERSYM)=$(VERSION)' -X '$(GITSHASYM)=$(GITSHA)' -X '$(BUILD
 .PHONY: build
 build:
 	cd cmd/go-runner && \
-	go build -ldflags $(GO_LDFLAGS) && \
+	go build $(GO_BUILD_FLAGS) -ldflags $(GO_LDFLAGS) && \
 	mv go-runner ../..
 
 .PHONY: lint
diff --git a/internal/log/log.go b/internal/log/log.go
index 4b4c28d..b68ec2a 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -27,7 +27,7 @@ var (
 
 func newLogger() *zap.SugaredLogger {
 	var level = zap.NewAtomicLevel()
-	level.SetLevel(zapcore.InfoLevel)
+	level.SetLevel(zapcore.WarnLevel)
 
 	core := zapcore.NewCore(
 		zapcore.NewConsoleEncoder(zap.NewDevelopmentEncoderConfig()),