Skip to content

Commit

Permalink
feat: Move TLS config logging closer to connect. (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Apr 19, 2023
1 parent e1b8eca commit 0ff3ddd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public void Connect()
try
{
ValidateNotBothHsmAndSecurityPolicies(_configuration);
LogTlsConfiguration();

var preconnectResult = SendPreconnectRequest();
_connectionInfo = new ConnectionInfo(_configuration, preconnectResult.RedirectHost);
Expand Down Expand Up @@ -112,6 +113,11 @@ public void Connect()
}
}

private void LogTlsConfiguration()
{
Log.Info($"Current TLS Configuration (System.Net.ServicePointManager.SecurityProtocol): {System.Net.ServicePointManager.SecurityProtocol}");
}

private void GenerateSpanEventsHarvestLimitMetrics(SingleEventHarvestConfig spanEventHarvestConfig)
{
if (spanEventHarvestConfig != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,6 @@ private void Initialize()

StartServices();
LogInitialized();
LogTlsConfiguration();
}

private void LogTlsConfiguration()
{
Log.Info($"TLS Configuration (System.Net.ServicePointManager.SecurityProtocol): {System.Net.ServicePointManager.SecurityProtocol}");
}

private void LogInitialized()
Expand Down

0 comments on commit 0ff3ddd

Please sign in to comment.