summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Logger.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-10-15 13:52:10 -0700
committerMark Spruiell <mes@zeroc.com>2012-10-15 13:52:10 -0700
commiteb78cf7bfb7038af9063547a2183861205325796 (patch)
tree22f0ffcb06cd2e47468b0a1a59ffcd34eac30eae /py/modules/IcePy/Logger.cpp
parentMerge branch 'master' of ssh://git/home/git/ice (diff)
downloadice-eb78cf7bfb7038af9063547a2183861205325796.tar.bz2
ice-eb78cf7bfb7038af9063547a2183861205325796.tar.xz
ice-eb78cf7bfb7038af9063547a2183861205325796.zip
Fixes for stream API, PHP 5.4, Python 3.3
Diffstat (limited to 'py/modules/IcePy/Logger.cpp')
-rw-r--r--py/modules/IcePy/Logger.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/modules/IcePy/Logger.cpp b/py/modules/IcePy/Logger.cpp
index 2a63c1468a0..5736c72c88b 100644
--- a/py/modules/IcePy/Logger.cpp
+++ b/py/modules/IcePy/Logger.cpp
@@ -400,6 +400,15 @@ IcePy::initLogger(PyObject* module)
return true;
}
+void
+IcePy::cleanupLogger()
+{
+ //
+ // Python is about to exit; we need to remove the wrapper around the process logger.
+ //
+ Ice::setProcessLogger(0);
+}
+
PyObject*
IcePy::createLogger(const Ice::LoggerPtr& logger)
{