summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/modules/IcePy/Logger.cpp')
-rw-r--r--py/modules/IcePy/Logger.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/modules/IcePy/Logger.cpp b/py/modules/IcePy/Logger.cpp
index 4aecd93417c..e720c8d9dd8 100644
--- a/py/modules/IcePy/Logger.cpp
+++ b/py/modules/IcePy/Logger.cpp
@@ -41,7 +41,10 @@ IcePy::LoggerWrapper::print(const string& message)
{
AdoptThread adoptThread; // Ensure the current thread is able to call into Python.
- PyObjectHandle tmp = PyObject_CallMethod(_logger.get(), STRCAST("print"), STRCAST("s"), message.c_str());
+ //
+ // Method must be named "_print".
+ //
+ PyObjectHandle tmp = PyObject_CallMethod(_logger.get(), STRCAST("_print"), STRCAST("s"), message.c_str());
if(!tmp.get())
{
throwPythonException();