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