RAT-126 Improve debugging messages. Thanks to Bernd Eckenfels for suggestions in https://issues.apache.org/jira/browse/RAT-126