Skip to content

Commit

Permalink
Change add failed log to debug (down from info)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaCo committed Jun 15, 2017
1 parent 25ad16f commit 7db3950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CacheManager.StackExchange.Redis/RedisCacheHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -882,9 +882,9 @@ private bool Set(CacheItem<TCacheValue> item, When when, bool sync = false)
if (result.IsNull && when == When.NotExists)
{
// add failed because element exists already
if (Logger.IsEnabled(LogLevel.Information))
if (Logger.IsEnabled(LogLevel.Debug))
{
Logger.LogInfo("DB {0} | Failed to add item [{1}] because it exists.", _connection.Database.Database, item.ToString());
Logger.LogDebug("DB {0} | Failed to add item [{1}] because it exists.", _connection.Database.Database, item.ToString());
}

return false;
Expand Down

0 comments on commit 7db3950

Please sign in to comment.