ExecuteSoapAction() : add namespace to log messages

This commit is contained in:
Thomas Bernard 2015-12-15 12:14:05 +01:00
parent ba1c9239c0
commit 6f89608a2c
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $Id: upnpsoap.c,v 1.135 2015/02/10 15:01:24 nanard Exp $ */ /* $Id: upnpsoap.c,v 1.142 2015/12/15 11:12:37 nanard Exp $ */
/* MiniUPnP project /* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2015 Thomas Bernard * (c) 2006-2015 Thomas Bernard
@ -2174,14 +2174,14 @@ ExecuteSoapAction(struct upnphttp * h, const char * action, int n)
len = strlen(soapMethods[i].methodName); len = strlen(soapMethods[i].methodName);
if((len == methodlen) && memcmp(p, soapMethods[i].methodName, len) == 0) { if((len == methodlen) && memcmp(p, soapMethods[i].methodName, len) == 0) {
#ifdef DEBUG #ifdef DEBUG
syslog(LOG_DEBUG, "Remote Call of SoapMethod '%s'", syslog(LOG_DEBUG, "Remote Call of SoapMethod '%s' %s",
soapMethods[i].methodName); soapMethods[i].methodName, namespace);
#endif /* DEBUG */ #endif /* DEBUG */
soapMethods[i].methodImpl(h, soapMethods[i].methodName, namespace); soapMethods[i].methodImpl(h, soapMethods[i].methodName, namespace);
return; return;
} }
} }
syslog(LOG_NOTICE, "SoapMethod: Unknown: %.*s", methodlen, p); syslog(LOG_NOTICE, "SoapMethod: Unknown: %.*s %s", methodlen, p, namespace);
} else { } else {
syslog(LOG_NOTICE, "cannot parse SoapAction"); syslog(LOG_NOTICE, "cannot parse SoapAction");
} }