Skip to content

Commit

Permalink
fix log error
Browse files Browse the repository at this point in the history
  • Loading branch information
vearne committed Sep 11, 2024
1 parent e089966 commit 43541d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := v0.1.5
VERSION := v0.1.6

BIN_NAME = grpcr
CONTAINER = grpcr
Expand Down
10 changes: 0 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ func init() {
func main() {
fmt.Print(banner)

adjustLogLevel()

flag.Parse()
if version {
fmt.Println("service: grpcreplay")
Expand Down Expand Up @@ -177,11 +175,3 @@ func printSettings(settings *config.AppSettings) {
slog.Info("output-rocketmq-name-server, %v", settings.OutputRocketMQNameServer)
slog.Info("output-rocketmq-topic, %v", settings.OutputRocketMQTopic)
}

func adjustLogLevel() {
logLevel := os.Getenv("SIMPLE_LOG_LEVEL")
if len(logLevel) > 0 {
return
}
slog.SetLevel(slog.InfoLevel)
}

0 comments on commit 43541d5

Please sign in to comment.