diff options
author | Mark Spruiell <mes@zeroc.com> | 2014-07-21 17:14:45 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2014-07-21 17:14:45 -0700 |
commit | f6871bc421840e0cabff34f2f477a9e53d14f812 (patch) | |
tree | c53a747b0c2a330802ceca7d80da7f5af3b05d4a /py/modules/IcePy/Logger.cpp | |
parent | Fixed windows compiler error (diff) | |
download | ice-f6871bc421840e0cabff34f2f477a9e53d14f812.tar.bz2 ice-f6871bc421840e0cabff34f2f477a9e53d14f812.tar.xz ice-f6871bc421840e0cabff34f2f477a9e53d14f812.zip |
ICE-5580 - port connection ACM functionality to scripting languages
Diffstat (limited to 'py/modules/IcePy/Logger.cpp')
-rw-r--r-- | py/modules/IcePy/Logger.cpp | 5 |
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(); |