From 47db79eeb407e59307cb3d5237d96dc703d85f95 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 11 Jan 2020 12:39:28 +0000 Subject: [PATCH] If the queue is set, return it. --- salt/log/setup.py | 3 +++ 1 file changed, 3 insertions(+) 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