Set the default log level for Agent to INFO and raise it to DEBUG if dump-logs=true is provided (#373)

* Set the default log level for Agent to `INFO` and change it to `DEBUG` if `dump-logs=true` is provided

* Remove `Trace` method and replace its calls with `Debug`

* Export logging levels from `logger` by defining functions

* Revert "Export logging levels from `logger` by defining functions"

This reverts commit e554e40f4a.

* Run `go mod tidy` on agent

* Define a method named `determineLogLevel`
This commit is contained in:
M. Mert Yıldıran
2021-10-19 14:22:20 +03:00
committed by GitHub
parent 3aafbd7e1c
commit b7ff076571
8 changed files with 38 additions and 18 deletions

View File

@@ -11,4 +11,5 @@ const (
RulePolicyFileName = "enforce-policy.yaml"
GoGCEnvVar = "GOGC"
DefaultApiServerPort = 8899
DebugModeEnvVar = "MIZU_DEBUG"
)