Remove logging that can cause errors