If error log is long truncate it
Improve formatting of log lines