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

@@ -124,9 +124,6 @@ func SilentError(t string, s string, a ...interface{}) {
func Debug(s string, a ...interface{}) {
logger.Log.Debugf(s, a...)
}
func Trace(s string, a ...interface{}) {
logger.Log.Infof(s, a...)
}
func inArrayInt(arr []int, valueToCheck int) bool {
for _, value := range arr {