logging around task processing