Irit Katriel <iritkatr...@yahoo.com> added the comment:
As the PR currently is, it will, unless you turn this off by setting logging.logMultiprocessing=False. The other alternative we are discussing is: revert back to not importing multiprocessing if it's not there. If it's there we use it, but if it's not we set processName to something like f"pid={os.getpid()}" instead of "MainThread". (1) os is already imported in logging. (2) In most cases where multiprocessing is not imported it's because there is only one process, so processName will not likely be used as all. (3) In the edge case of shutdown or someone clearing sys.modules the processName will not be pretty, but it will at least be correct. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38762> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com