Skip to content

Commit

Permalink
Fix PerformStore log message
Browse files Browse the repository at this point in the history
The arguments to this LogError call are out of order. The resulting
message outputs "PerformStore" with no cause or trace. Someone
previously reported this in issue #61, but it was closed for some
reason.
  • Loading branch information
andrew-vant committed Feb 5, 2024
1 parent ec873e7 commit e431ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Enyim.Caching/MemcachedClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ protected virtual IStoreOperationResult PerformStore(StoreMode mode, string key,
try { item = _transcoder.Serialize(value); }
catch (Exception e)
{
_logger.LogError("PerformStore", e);
_logger.LogError(0, ex, "PerformStore failed ({err})", ex.Message);
if (!_suppressException) throw;

result.Fail("PerformStore failed", e);
Expand Down

0 comments on commit e431ecc

Please sign in to comment.