[smuxi] [Engine] Guard log calls with LOG4NET define checks



commit 690603a30a38b2a3a5d4a841cdf824d27666e375
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Mar 4 13:19:52 2012 +0100

    [Engine] Guard log calls with LOG4NET define checks

 src/Engine/MessageBuffers/GitMessageBuffer.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Engine/MessageBuffers/GitMessageBuffer.cs b/src/Engine/MessageBuffers/GitMessageBuffer.cs
index 1ffa07b..3f59c6f 100644
--- a/src/Engine/MessageBuffers/GitMessageBuffer.cs
+++ b/src/Engine/MessageBuffers/GitMessageBuffer.cs
@@ -117,7 +117,7 @@ namespace Smuxi.Engine
                 index.AddToIndex(msgFileName);
                 stop = DateTime.UtcNow;
             }
-#if MSGBUF_DEBUG
+#if LOG4NET && MSGBUF_DEBUG
             f_Logger.DebugFormat("Add(): Index.AddToIndex() took: {0:0.00} ms",
                                  (stop - start).TotalMilliseconds);
 #endif
@@ -245,7 +245,7 @@ namespace Smuxi.Engine
                 start = DateTime.UtcNow;
                 repo.Index.UpdatePhysicalIndex();
                 stop = DateTime.UtcNow;
-#if MSGBUF_DEBUG
+#if LOG4NET && MSGBUF_DEBUG
                 f_Logger.DebugFormat("Commit(): Repository.Index.UpdatePhysicalIndex() took: {0:0.00} ms",
                                      (stop - start).TotalMilliseconds);
 #endif
@@ -253,7 +253,7 @@ namespace Smuxi.Engine
                 start = DateTime.UtcNow;
                 repo.Commit(CommitMessage.ToString(), false);
                 stop = DateTime.UtcNow;
-#if MSGBUF_DEBUG
+#if LOG4NET && MSGBUF_DEBUG
                 f_Logger.DebugFormat("Commit(): Repository.Commit() took: {0:0.00} ms",
                                      (stop - start).TotalMilliseconds);
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]