Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jun 4, 2024
1 parent 6de3d94 commit 4ca5326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public ElasticOpenTelemetryOptions(IDictionary? environmentVariables = null)
internal ElasticOpenTelemetryOptions(IConfiguration? configuration, IDictionary? environmentVariables = null)
: this(environmentVariables)
{
if (configuration is null) return;
if (configuration is null)
return;
SetFromConfiguration(configuration, LogDirectoryConfigPropertyName, ref _logDirectory, ref _logDirectorySource, StringParser);
SetFromConfiguration(configuration, LogLevelConfigPropertyName, ref _logLevel, ref _logLevelSource, LogLevelParser);
SetFromConfiguration(configuration, LogTargetsConfigPropertyName, ref _logTargets, ref _logTargetsSource, LogTargetsParser);
Expand Down Expand Up @@ -139,7 +140,7 @@ private static string GetDefaultLogDirectory() =>
/// <para> - /var/log/elastic/apm-agent-dotnet (on Linux)</para>
/// <para> - ~/Library/Application_Support/elastic/apm-agent-dotnet (on OSX)</para>
/// </summary>
public string LogDirectoryDefault => _defaultLogDirectory ;
public string LogDirectoryDefault => _defaultLogDirectory;

/// <summary>
/// The output directory where the Elastic distribution of OpenTelemetry will write log files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ public void ConfigurationCtor_LoadsConfigurationFromIConfiguration_AndFallsBackT
sut.LogConfigSources(logger);

logger.Messages.Count.Should().Be(4);
foreach (var message in logger.Messages) message.Should().EndWith("from [IConfiguration]");
foreach (var message in logger.Messages)
message.Should().EndWith("from [IConfiguration]");
}

[Fact]
Expand Down

0 comments on commit 4ca5326

Please sign in to comment.