Skip to content

Commit e8d1d93

Browse files
Rename DebugLogLevel to DebugLogLevelEnvVar constant
Clarifies that the "DEBUG" value is for environment variables by renaming DebugLogLevel to DebugLogLevelEnvVar in ConfigurationConstants. Updates all usages in MicrocksAsyncMinionBuilder and MicrocksBuilder for improved code clarity. Signed-off-by: Santhosh Reddy Vootukuri<[email protected]> Signed-off-by: Santhosh Reddy Vootukuri (SUNNY) <[email protected]>
1 parent 8017fe7 commit e8d1d93

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Microcks.Testcontainers/Helpers/ConfigurationConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class ConfigurationConstants
3333
/// <summary>
3434
/// Environment variable value for enabling DEBUG logging.
3535
/// </summary>
36-
public const string DebugLogLevel = "DEBUG";
36+
public const string DebugLogLevelEnvVar = "DEBUG";
3737

3838
/// <summary>
3939
/// Environment variable name used by Quarkus to configure console log level.

src/Microcks.Testcontainers/MicrocksAsyncMinionBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public MicrocksAsyncMinionBuilder WithAmqpConnection(GenericConnection amqpConne
146146
public MicrocksAsyncMinionBuilder WithDebugLogLevel()
147147
{
148148
return this
149-
.WithEnvironment(ConfigurationConstants.QuarkusConsoleLogLevelEnvVar, ConfigurationConstants.DebugLogLevel)
150-
.WithEnvironment(ConfigurationConstants.QuarkusMicrocksCategoryLogLevelEnvVar, ConfigurationConstants.DebugLogLevel);
149+
.WithEnvironment(ConfigurationConstants.QuarkusConsoleLogLevelEnvVar, ConfigurationConstants.DebugLogLevelEnvVar)
150+
.WithEnvironment(ConfigurationConstants.QuarkusMicrocksCategoryLogLevelEnvVar, ConfigurationConstants.DebugLogLevelEnvVar);
151151
}
152152
}

src/Microcks.Testcontainers/MicrocksBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,6 @@ public MicrocksBuilder WithSecrets(params Model.Secret[] secrets)
274274
/// </summary>
275275
public MicrocksBuilder WithDebugLogLevel()
276276
{
277-
return this.WithEnvironment(ConfigurationConstants.MicrocksLoggingLevelEnvVar, ConfigurationConstants.DebugLogLevel);
277+
return this.WithEnvironment(ConfigurationConstants.MicrocksLoggingLevelEnvVar, ConfigurationConstants.DebugLogLevelEnvVar);
278278
}
279279
}

0 commit comments

Comments
 (0)