Skip to content

Commit 25b7abc

Browse files
author
Steffen
committed
Merge branch 'release/2.1.0'
2 parents 7e6b3e7 + a4f939f commit 25b7abc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.1.0] - 2023-08-02
11+
12+
### Added
13+
14+
- Added debug output for connect command.
15+
1016
## [2.0.1] - 2023-08-02
1117

1218
### Fixed

src/PsSqlClient/ConnectInstanceCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,11 @@ private void InitAuthenticationClass()
444444
{
445445
if (AcquireToken.IsPresent)
446446
{
447-
WriteVerbose("Token was acquired. Use token-based authentication.");
447+
WriteVerbose("Token will be acquired. Use token-based authentication.");
448448
_authenticationClass = AuthenticationClass.TokenAuthentication;
449449

450450
AccessToken = new AzureServiceTokenProvider().GetAccessTokenAsync(resource: Resource).Result;
451+
WriteDebug($"AccessToken:${AccessToken}");
451452
}
452453
else if (!string.IsNullOrWhiteSpace(AccessToken))
453454
{
@@ -532,6 +533,7 @@ private void OpenConnection(SqlConnection connection)
532533
var connectStopwatch = Stopwatch.StartNew();
533534
try
534535
{
536+
WriteDebug($"Open connection with connection string: ${ ConnectionString }");
535537
connection.Open();
536538
}
537539
catch (SqlException ex)

src/PsSqlClient/PsSqlClient.psd1

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)