changed logger debug mode to log level (#456)

This commit is contained in:
RoyUP9
2021-11-14 12:21:48 +02:00
committed by GitHub
parent 6909e6e657
commit 14a5fe11e7
10 changed files with 42 additions and 26 deletions

View File

@@ -1,6 +1,7 @@
package shared
import (
"github.com/op/go-logging"
"github.com/up9inc/mizu/tap/api"
"io/ioutil"
"log"
@@ -36,7 +37,7 @@ type MizuAgentConfig struct {
TargetNamespaces []string `json:"targetNamespaces"`
AgentImage string `json:"agentImage"`
PullPolicy string `json:"pullPolicy"`
DumpLogs bool `json:"dumpLogs"`
LogLevel logging.Level `json:"logLevel"`
IgnoredUserAgents []string `json:"ignoredUserAgents"`
TapperResources Resources `json:"tapperResources"`
MizuResourcesNamespace string `json:"mizuResourceNamespace"`