[longomatch] Add more debug for playlists elements



commit 3b711aa88bf301dc4c1c0e1d94f32bcad0e18e6b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Apr 30 11:35:44 2015 +0200

    Add more debug for playlists elements

 .../Store/Playlists/PlaylistPlayElement.cs         |    7 +++++++
 LongoMatch.Services/RenderingJobsManager.cs        |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Playlists/PlaylistPlayElement.cs 
b/LongoMatch.Core/Store/Playlists/PlaylistPlayElement.cs
index b6c898d..f55f770 100644
--- a/LongoMatch.Core/Store/Playlists/PlaylistPlayElement.cs
+++ b/LongoMatch.Core/Store/Playlists/PlaylistPlayElement.cs
@@ -127,6 +127,13 @@ namespace LongoMatch.Core.Store.Playlists
                                return Play.Miniature;
                        }
                }
+
+               public override string ToString ()
+               {
+                       return string.Format ("Duration={0}, Title={1}, Rate={2}, ROI={3}, Drawings={4}",
+                               Duration, Title, RateString, CamerasConfig [0].RegionOfInterest,
+                               Play.Drawings.Count);
+               }
        }
 }
 
diff --git a/LongoMatch.Services/RenderingJobsManager.cs b/LongoMatch.Services/RenderingJobsManager.cs
index c37a0f8..25f0f6e 100644
--- a/LongoMatch.Services/RenderingJobsManager.cs
+++ b/LongoMatch.Services/RenderingJobsManager.cs
@@ -242,7 +242,7 @@ namespace LongoMatch.Services
                        Area roi;
 
                        play = element.Play;
-                       Log.Debug (String.Format ("Adding segment with {0} drawings", play.Drawings.Count));
+                       Log.Debug (String.Format ("Adding segment {0}", element));
                        
                        lastTS = play.Start;
                        if (element.CamerasConfig.Count == 0) {


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