[longomatch] Add some debug to gameunits manager



commit 1afe8c7dcd0c84ed510130176a34fe18948330ff
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Nov 29 22:05:19 2011 +0100

    Add some debug to gameunits manager

 LongoMatch.Services/Services/GameUnitsManager.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/GameUnitsManager.cs b/LongoMatch.Services/Services/GameUnitsManager.cs
index 616a704..6d951fa 100644
--- a/LongoMatch.Services/Services/GameUnitsManager.cs
+++ b/LongoMatch.Services/Services/GameUnitsManager.cs
@@ -65,6 +65,7 @@ namespace LongoMatch.Services
 			} else {
 				Log.Warning("Tryed to cancel a game unit that was not started: " + gameUnit);
 			}
+			Log.Debug("Cancelled pending unit for game unit:" + gameUnit);
 		}
 		
 		private void StopGameUnit(GameUnit gameUnit) {
@@ -80,10 +81,12 @@ namespace LongoMatch.Services
 			
 			gameUnit.Add(timeInfo);
 			gameUnitsStarted.Remove(gameUnit);
+			Log.Debug(String.Format("Added new unit:{0} to {1} ", timeInfo, gameUnit));
 		}
 
 		void HandleMainWindowGameUnitEvent (GameUnit gameUnit, LongoMatch.Common.GameUnitEventType eType)
 		{
+			Log.Debug("Received GameUnit event of type: " + eType);
 			switch (eType) {
 			case GameUnitEventType.Start:
 			{



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