diff options
Diffstat (limited to 'src/slskd/Shares/SharedFileCache.cs')
| -rw-r--r-- | src/slskd/Shares/SharedFileCache.cs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/slskd/Shares/SharedFileCache.cs b/src/slskd/Shares/SharedFileCache.cs index eeea94d2..6ed21d9d 100644 --- a/src/slskd/Shares/SharedFileCache.cs +++ b/src/slskd/Shares/SharedFileCache.cs @@ -193,7 +193,8 @@ namespace slskd.Shares foreach (var share in Shares) { - Log.Information($"Share: Alias: {share.Alias} Mask: {share.Mask} Local Path: {share.LocalPath} Remote Path: {share.RemotePath} Raw: {share.Raw}"); + Log.Information($"Sharing {share.LocalPath} as {share.RemotePath}"); + Log.Debug($"Raw: {share.Raw}, Alias: {share.Alias}, Mask: {share.Mask}, Remote: {share.RemotePath})"); } Log.Debug("Enumerating shared directories"); @@ -416,20 +417,6 @@ namespace slskd.Shares catch (Exception ex) { Log.Warning(ex, "Failed to map shared file result: {Message}", ex.Message); - - // temporarily log the share state when we hit this error, to help debug - foreach (var share in Shares) - { - Log.Information($"Share: Alias: {share.Alias} Mask: {share.Mask} Local Path: {share.LocalPath} Remote Path: {share.RemotePath} Raw: {share.Raw}"); - } - - Log.Information("Sample shared file keys:"); - - foreach (var key in MaskedFiles.Keys.Take(10)) - { - Log.Information(key); - } - return Enumerable.Empty<File>(); } } |
