printing the exception

Found a bug in the logging code where the exceptions weren't being printed :cry: 
Any particular reason the data needs to be trimmed? Why not assert the entire value, including any whitespace?