From ba4be1f928d3ca5ea85ed273121baa74ed526b7a Mon Sep 17 00:00:00 2001 From: AquoDev <14019792+AquoDev@users.noreply.github.com> Date: Tue, 27 Oct 2020 09:08:28 +0100 Subject: [PATCH] [Improvement] Disable logs when log level -1 is set --- .env.example | 1 + pkg/types/log-level.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 2922659..336659c 100644 --- a/.env.example +++ b/.env.example @@ -37,6 +37,7 @@ HEALTH_CHECK_TIMEOUT=20 #################### # CLIENT_LOGS_LEVEL values: +# -1 -> No log # 0 -> Standard output # (default) 1 -> Errors + 0 # 2 -> Detailed + 1 diff --git a/pkg/types/log-level.go b/pkg/types/log-level.go index 7abfd71..7294349 100644 --- a/pkg/types/log-level.go +++ b/pkg/types/log-level.go @@ -1,7 +1,7 @@ package types // LogLevel is used to check if a message must be shown. -type LogLevel uint +type LogLevel int const ( // StandardLog shows only successful operations.