Fix untruncated log feature

@garvankeeley The feature added in #1117 is not working because it is comparing a String to a char.