Add output of logs when occuring errors