From 8d70f0a0e66794fff757464cb4aa17db1c9dd0d7 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Thu, 26 Sep 2024 21:33:25 -0500 Subject: [PATCH] Fixed a bug with the create directory log statement --- src/Foundatio.Storage.SshNet/Storage/SshNetFileStorage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Foundatio.Storage.SshNet/Storage/SshNetFileStorage.cs b/src/Foundatio.Storage.SshNet/Storage/SshNetFileStorage.cs index f3babb1..6f595f9 100644 --- a/src/Foundatio.Storage.SshNet/Storage/SshNetFileStorage.cs +++ b/src/Foundatio.Storage.SshNet/Storage/SshNetFileStorage.cs @@ -276,7 +276,7 @@ private void CreateDirectory(string path) if (_client.Exists(currentDirectory)) continue; - _logger.LogInformation("Creating {Directory} directory", directory); + _logger.LogInformation("Creating {Directory} directory", currentDirectory); try { @@ -554,6 +554,6 @@ public void Dispose() _logger.LogTrace("Disconnected from {Host}:{Port}", _client.ConnectionInfo.Host, _client.ConnectionInfo.Port); } - ((IBaseClient)_client).Dispose(); + _client.Dispose(); } }