Skip to content

Commit 991c973

Browse files
committed
update activation and deactivation tests based on actual log level not its mere presence
1 parent 0dd08a7 commit 991c973

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Elastic.OpenTelemetry.Tests/Configuration/GlobalLogConfigurationTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void Check_Defaults()
2323

2424
//
2525
[Theory]
26-
[InlineData(OTEL_LOG_LEVEL, "Info")]
26+
[InlineData(OTEL_LOG_LEVEL, "Debug")]
2727
[InlineData(OTEL_DOTNET_AUTO_LOG_DIRECTORY, "1")]
2828
//only if explicitly specified to 'none' should we not default to file logging.
2929
[InlineData(ELASTIC_OTEL_LOG_TARGETS, "file")]
@@ -37,6 +37,7 @@ public void CheckActivation(string environmentVariable, string value)
3737
//
3838
[Theory]
3939
[InlineData(OTEL_LOG_LEVEL, "none")]
40+
[InlineData(OTEL_LOG_LEVEL, "Debug")]
4041
//only if explicitly specified to 'none' should we not default to file logging.
4142
[InlineData(ELASTIC_OTEL_LOG_TARGETS, "none")]
4243
public void CheckDeactivation(string environmentVariable, string value)

0 commit comments

Comments
 (0)