Convert and correct spurious print into a debug message.