Added a fix to feed error log to Logentries