def workaround_salt_log_handler_queues():
    '\n    Build a fake log handler and add it to LOGGING_STORE_HANDLER and LOGGING_NULL_HANDLER\n    '

    class _FakeLogHandler(object):
        level = 10
        count = 0

        def handle(self, _record):
            ' Receive a record and increase the count '
            self.count += 1
    flh = _FakeLogHandler()
    import salt.log.setup as sls
    sls.LOGGING_STORE_HANDLER.sync_with_handlers([flh])
    sls.LOGGING_NULL_HANDLER.sync_with_handlers([flh])
Build a fake log handler and add it to LOGGING_STORE_HANDLER and LOGGING_NULL_HANDLER
def workaround_salt_log_handler_queues():
    '\n    \n    '

    class _FakeLogHandler(object):
        level = 10
        count = 0

        def handle(self, _record):
            ' Receive a record and increase the count '
            self.count += 1
    flh = _FakeLogHandler()
    import salt.log.setup as sls
    sls.LOGGING_STORE_HANDLER.sync_with_handlers([flh])
    sls.LOGGING_NULL_HANDLER.sync_with_handlers([flh])