Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Commit

Permalink
Fix up some log() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
enyim committed Oct 6, 2010
1 parent d37ed12 commit dbf759b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Enyim.Caching/Memcached/Protocol/Binary/DeleteOperation.cs
Expand Up @@ -24,7 +24,7 @@ protected override bool ProcessResponse(BinaryResponse response)
#if EVEN_MORE_LOGGING
if (log.IsDebugEnabled)
if (response.StatusCode == 0)
log.DebugFormat("Delete succeeded for key '{0}'. Reason: {1}", this.Key);
log.DebugFormat("Delete succeeded for key '{0}'.", this.Key);
else
log.DebugFormat("Delete failed for key '{0}'. Reason: {1}", this.Key, Encoding.ASCII.GetString(response.Data.Array, response.Data.Offset, response.Data.Count));
#endif
Expand Down
3 changes: 1 addition & 2 deletions Enyim.Caching/Memcached/Protocol/Binary/StoreOperation.cs
Expand Up @@ -51,10 +51,9 @@ protected override bool ProcessResponse(BinaryResponse response)
#if EVEN_MORE_LOGGING
if (log.IsDebugEnabled)
if (response.StatusCode == 0)
log.DebugFormat("Store succeeded for key '{0}'. Reason: {1}", this.Key);
log.DebugFormat("Store succeeded for key '{0}'.", this.Key);
else
{
System.Diagnostics.Debugger.Break();
log.DebugFormat("Store failed for key '{0}'. Reason: {1}", this.Key, Encoding.ASCII.GetString(response.Data.Array, response.Data.Offset, response.Data.Count));
}
#endif
Expand Down

0 comments on commit dbf759b

Please sign in to comment.