Add logging to queue processor