--- a/libupnpp/control/service.cxx
+++ b/libupnpp/control/service.cxx
@@ -94,8 +94,8 @@
0 /*devUDN*/, request, &response);
if (ret != UPNP_E_SUCCESS) {
- LOGINF("Service::runAction: UpnpSendAction failed: " <<
- UpnpGetErrorMessage(ret) << endl);
+ LOGINF("Service::runAction: UpnpSendAction failed: " << ret <<
+ " : " << UpnpGetErrorMessage(ret) << endl);
return ret;
}
LOGDEB("Service::runAction: Result xml: [" << ixmlPrintDocument(response) << "]" << endl);
@@ -206,7 +206,7 @@
int ret = UpnpSubscribe(lib->getclh(), m_eventURL.c_str(),
&timeout, m_SID);
if (ret != UPNP_E_SUCCESS) {
- LOGERR("Service:subscribe: failed: " <<
+ LOGERR("Service:subscribe: failed: " << ret << " : " <<
UpnpGetErrorMessage(ret) << endl);
return false;
}
@@ -224,7 +224,7 @@
}
int ret = UpnpUnSubscribe(lib->getclh(), m_SID);
if (ret != UPNP_E_SUCCESS) {
- LOGERR("Service:unSubscribe: failed: " <<
+ LOGERR("Service:unSubscribe: failed: " << ret << " : " <<
UpnpGetErrorMessage(ret) << endl);
return false;
}