Do not set basicConfig() but provide a default logger.

This commit is contained in:
Mikaël Capelle
2020-11-09 20:08:29 +01:00
parent ebb566f773
commit 04e1af60a0
3 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -1197,7 +1197,7 @@ bool PythonRunner::initPython(const QString &pythonPath)
"sys.excepthook = lambda x, y, z: sys.__excepthook__(x, y, z)\n",
mainNamespace);
mainNamespace["mobase"].attr("LogHandler") = configure_python_logging();
configure_python_logging(mainNamespace["mobase"]);
PyEval_SaveThread();
return true;