diff --git a/salt/log/setup.py b/salt/log/setup.py index 46e7c162f6e4..6f9fa63cda29 100644 --- a/salt/log/setup.py +++ b/salt/log/setup.py @@ -484,6 +484,9 @@ def get_multiprocessing_logging_queue(): global __MP_LOGGING_QUEUE from salt.utils.platform import is_darwin + if __MP_LOGGING_QUEUE is not None: + return __MP_LOGGING_QUEUE + if __MP_IN_MAINPROCESS is False: # We're not in the MainProcess, return! No Queue shall be instantiated return __MP_LOGGING_QUEUE