Removing debug statement causes a flood in log