Mock Patch to Enable Realtime Output of logs