Author: aconway
Date: Tue Jul 15 20:23:06 2014
New Revision: 1610838
URL: http://svn.apache.org/r1610838
Log:
NO-JIRA: Fix logging in python_embedded.c - corrupting messages with printf
substitutions.
Messages from python with sequences that are valid printf substitutions (e.g.
"%s")
were printing garbage for the substitutions.
Modified:
qpid/dispatch/trunk/src/python_embedded.c
Modified: qpid/dispatch/trunk/src/python_embedded.c
URL:
http://svn.apache.org/viewvc/qpid/dispatch/trunk/src/python_embedded.c?rev=1610838&r1=1610837&r2=1610838&view=diff
==============================================================================
--- qpid/dispatch/trunk/src/python_embedded.c (original)
+++ qpid/dispatch/trunk/src/python_embedded.c Tue Jul 15 20:23:06 2014
@@ -344,7 +344,7 @@ static PyObject* qd_python_log(PyObject
LogAdapter *self_ptr = (LogAdapter*) self;
//char *logmod = PyString_AS_STRING(self_ptr->module_name);
- qd_log(self_ptr->log_source, level, text);
+ qd_log(self_ptr->log_source, level, "%s", text);
Py_INCREF(Py_None);
return Py_None;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]