diff --git a/log/logger.go b/log/logger.go index 629c420..f13f133 100644 --- a/log/logger.go +++ b/log/logger.go @@ -12,7 +12,7 @@ import ( ) const ( - _logLevelEnv = "JFROG_LOG_LEVEL" + LogLevelEnv = "JFROG_LOG_LEVEL" ) type Log interface { @@ -48,7 +48,7 @@ const ( ) func getLogLevel() LevelType { - switch strings.ToUpper(os.Getenv(_logLevelEnv)) { + switch strings.ToUpper(os.Getenv(LogLevelEnv)) { case "ERROR": return ERROR case "WARN": diff --git a/log/logger_test.go b/log/logger_test.go index fcef381..202216c 100644 --- a/log/logger_test.go +++ b/log/logger_test.go @@ -8,11 +8,11 @@ import ( ) func SetEnvironmentVariableForLogLevel(t *testing.T, level string) { - assert.NoError(t, os.Setenv(_logLevelEnv, level)) + assert.NoError(t, os.Setenv(LogLevelEnv, level)) } func ResetEnvironmentVariableForLogLevel(t *testing.T) { - assert.NoError(t, os.Unsetenv(_logLevelEnv)) + assert.NoError(t, os.Unsetenv(LogLevelEnv)) } func TestLogger_WithDefaultInfoLogLevel_LogsInfoAndAbove(t *testing.T) {