Adding errors to logs