From 6b4bd54191d951eb9b49f72ae8e77b653e9e8fdc Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 30 Nov 2006 13:35:45 +0000 Subject: [PATCH] Add some debug output. --- campcaster/src/products/scheduler/src/PlaylistEvent.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/campcaster/src/products/scheduler/src/PlaylistEvent.cxx b/campcaster/src/products/scheduler/src/PlaylistEvent.cxx index 7127e1251..2fb1d0cc9 100644 --- a/campcaster/src/products/scheduler/src/PlaylistEvent.cxx +++ b/campcaster/src/products/scheduler/src/PlaylistEvent.cxx @@ -41,6 +41,8 @@ #include +#define DEBUG_PREFIX "Scheduler" +#include "LiveSupport/Core/Debug.h" #include "LiveSupport/Core/TimeConversion.h" #include "LiveSupport/Core/SessionId.h" @@ -93,6 +95,8 @@ PlaylistEvent :: PlaylistEvent( void PlaylistEvent :: initialize(void) throw (std::exception) { + DEBUG_BLOCK + std::cerr << "PlaylistEvent :: initialize BEGIN\n"; if (state != created) { throw std::logic_error("PlaylistEvent in bad state"); @@ -145,6 +149,8 @@ std::cerr << "PlaylistEvent :: deInitialize END\n"; void PlaylistEvent :: start(void) throw () { + DEBUG_BLOCK + std::cerr << "PlaylistEvent :: start BEGIN\n"; if (state != initialized) { // TODO: handle error? @@ -174,6 +180,8 @@ std::cerr << "PlaylistEvent :: audio player started\n"; void PlaylistEvent :: stop(void) throw () { + DEBUG_BLOCK + std::cerr << "PlaylistEvent :: stop BEGIN\n"; if (state != running) { // TODO: handle error?