Begin debugging logging by commenting out the custom outputs. One of these is probably the culprit.