Quick fix to dump log to console when an error occurs