From 6c9c81c57a67e3cbd2e12b78f89ee9875585a120 Mon Sep 17 00:00:00 2001 From: boranblok Date: Wed, 9 May 2018 10:37:12 +0200 Subject: [PATCH] Commented logging statements used to debug possible locking issue, these generated too much logspam. --- nntpPoster/PostingThread.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nntpPoster/PostingThread.cs b/nntpPoster/PostingThread.cs index 6770937..50ce16d 100644 --- a/nntpPoster/PostingThread.cs +++ b/nntpPoster/PostingThread.cs @@ -89,7 +89,7 @@ private void PostingTask() log.DebugFormat("No message to post, checking cleanup."); if (_client != null) //If the queue runs dry we close the connection { - log.DebugFormat("The posting client is not null."); + //log.DebugFormat("The posting client is not null."); if ((DateTime.Now - lastMessage).TotalMilliseconds > 5000) //TODO: parametrize. { log.Debug("Disposing client because of empty queue."); @@ -98,36 +98,36 @@ private void PostingTask() } else { - log.DebugFormat("Sleeping 100ms before next loop."); + //log.DebugFormat("Sleeping 100ms before next loop."); Thread.Sleep(100); } } if (StopRequested) { - log.Debug("Empty queue and stop requested, Finished = true."); + //log.Debug("Empty queue and stop requested, Finished = true."); Finished = true; } else { - log.Debug("Locking monitor."); + //log.Debug("Locking monitor."); lock (monitor) { - log.Debug("Locked monitor."); + //log.Debug("Locked monitor."); if (Finished) { - log.Debug("Finished = true breaking out of loop."); + //.Debug("Finished = true breaking out of loop."); break; } if (StopRequested) { - log.Debug("Empty queue and stop requested, Finished = true."); + //log.Debug("Empty queue and stop requested, Finished = true."); Finished = true; break; } - log.Debug("waiting 100 ms on monitor."); + //log.Debug("waiting 100 ms on monitor."); Monitor.Wait(monitor, 100); //TODO: BLB Possible cause of locking issue by UNI. } - log.Debug("Unlocked monitor."); + //log.Debug("Unlocked monitor."); } } log.DebugFormat("Finished cleanup.");