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.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)
{