strip trailing from invalid line output
Merge pull request #299 from obfuscurity/strip_invalid_line_log_output

Strip trailing from invalid line output