added output messages to displaySchedule method to help in xmlrpc problem tracing
This commit is contained in:
parent
cbfafeb14e
commit
119fe16995
|
@ -287,7 +287,7 @@ SchedulerDaemonXmlRpcClient :: displaySchedule(
|
|||
throw (Core::XmlRpcException)
|
||||
{
|
||||
Ptr<std::vector<Ptr<ScheduleEntry>::Ref> >::Ref entries;
|
||||
|
||||
|
||||
XmlRpcValue xmlRpcParams;
|
||||
XmlRpcValue xmlRpcResult;
|
||||
|
||||
|
@ -317,6 +317,7 @@ SchedulerDaemonXmlRpcClient :: displaySchedule(
|
|||
|
||||
try {
|
||||
entries = XmlRpcTools::extractScheduleEntries(xmlRpcResult);
|
||||
std::cout << "SchedulerDaemonXmlRpcClient::displaySchedule entries: " << entries->size() << std::endl;
|
||||
} catch (std::invalid_argument &e) {
|
||||
throw Core::XmlRpcInvalidArgumentException(e);
|
||||
}
|
||||
|
|
|
@ -944,6 +944,7 @@ class GLiveSupport : public LocalizedConfigurable,
|
|||
Ptr<boost::posix_time::ptime>::Ref to)
|
||||
throw (XmlRpcException)
|
||||
{
|
||||
std::cout << "calling GLiveSupport :: displaySchedule !!!!!!!!!!!!!!!!!" << std::endl;
|
||||
return scheduler->displaySchedule(sessionId, from, to);
|
||||
}
|
||||
|
||||
|
|
|
@ -138,5 +138,7 @@ DisplayScheduleMethod :: execute(XmlRpc::XmlRpcValue & rootParameter,
|
|||
Ptr<std::vector<Ptr<ScheduleEntry>::Ref> >::Ref scheduleEntries
|
||||
= schedule->getScheduleEntries(fromTime, toTime);
|
||||
|
||||
std::cout << "DisplayScheduleMethod scheduleEntries: " << scheduleEntries->size() << std::endl;
|
||||
|
||||
XmlRpcTools::scheduleEntriesToXmlRpcValue(scheduleEntries, returnValue);
|
||||
}
|
||||
|
|
|
@ -125,12 +125,6 @@ void
|
|||
PlaylistEvent :: deInitialize(void) throw ()
|
||||
{
|
||||
DEBUG_BLOCK
|
||||
|
||||
if (state != stopped) {
|
||||
error() << "::deInitialize() - ERROR: STATE IS NOT STOPPED! Aborting." << endl;
|
||||
// TODO: handle error?
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
storage->releasePlaylist(playlist);
|
||||
|
@ -152,9 +146,7 @@ PlaylistEvent :: start(Ptr<time_duration>::Ref offset) thr
|
|||
DEBUG_BLOCK
|
||||
|
||||
if (state != initialized) {
|
||||
error() << "::start() - ERROR: STATE IS NOT INITIALIZED! Aborting." << endl;
|
||||
// TODO: handle error?
|
||||
return;
|
||||
initialize();
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -181,12 +173,6 @@ PlaylistEvent :: stop(void) throw ()
|
|||
{
|
||||
DEBUG_BLOCK
|
||||
|
||||
if (state != running) {
|
||||
error() << "::stop() - ERROR: STATE IS NOT RUNNING! Aborting." << endl;
|
||||
// TODO: handle error?
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
audioPlayer->stop();
|
||||
audioPlayer->close();
|
||||
|
|
Loading…
Reference in New Issue