diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-10-27 15:54:43 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-10-27 15:54:43 -0500 |
| commit | 97c430aaa8d1d1133eb0d017ca6067e69a22c502 (patch) | |
| tree | 613ac465cea32eb75e2da60e6bc388989d1ecdb7 /src | |
| parent | 5b81f648672ee6aa2cf30218cfe6f0ac7d4f626c (diff) | |
| download | slskd-97c430aaa8d1d1133eb0d017ca6067e69a22c502.tar.gz | |
prevent misleading log about blacklist config
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Users/UserService.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index d6a92e19..ead1d812 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -411,7 +411,10 @@ namespace slskd.Users // the application. these sorts of blacklists should be relatively static (i think) if (blacklistOptionsHash != LastBlacklistOptionsHash) { - Log.Debug("Blacklist options changed: {JSON}", options.Blacklist.ToJson()); + if (!string.IsNullOrEmpty(LastBlacklistOptionsHash)) + { + Log.Debug("Blacklist options changed: {JSON}", options.Blacklist.ToJson()); + } if (!options.Blacklist.Enabled) { |
