From 4983e2d921d35b32d7b98374c104796f31d9cdf5 Mon Sep 17 00:00:00 2001 From: Alex Tymchuk Date: Tue, 26 Sep 2023 15:40:33 +0000 Subject: [PATCH] PMM-12375 revert changed related to linter --- managed/services/agents/grpc/agent_server.go | 2 +- managed/services/agents/log_level.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/managed/services/agents/grpc/agent_server.go b/managed/services/agents/grpc/agent_server.go index 69eced0a99..da6e23502d 100644 --- a/managed/services/agents/grpc/agent_server.go +++ b/managed/services/agents/grpc/agent_server.go @@ -40,7 +40,7 @@ func (s *agentServer) Connect(stream agentpb.Agent_ConnectServer) error { return s.handler.Run(stream) } -// check interfaces. +// check interfaces var ( _ agentpb.AgentServer = (*agentServer)(nil) ) diff --git a/managed/services/agents/log_level.go b/managed/services/agents/log_level.go index 9eea4125ca..a7cc24c273 100644 --- a/managed/services/agents/log_level.go +++ b/managed/services/agents/log_level.go @@ -22,11 +22,11 @@ import ( "github.com/percona/pmm/version" ) -// Log level available in exporters with pmm 2.28.0 and up. +// Log level available in exporters with pmm 2.28 var exporterLogLevelCommandVersion = version.MustParse("2.27.99") // withLogLevel - append CLI args --log.level -// mysqld_exporter, node_exporter and postgres_exporter don't support --log.level=fatal. +// mysqld_exporter, node_exporter and postgres_exporter don't support --log.level=fatal func withLogLevel(args []string, logLevel *string, pmmAgentVersion *version.Parsed, supportLogLevelFatal bool) []string { level := pointer.GetString(logLevel)