[smuxi/experiments/sqlite: 18/27] [Engine] Guard log calls with LOG4NET define checks
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/sqlite: 18/27] [Engine] Guard log calls with LOG4NET define checks
- Date: Sun, 23 Feb 2014 17:07:53 +0000 (UTC)
commit 23d37e614b4a51e2ce7a449bd63cabd44493b177
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]