checking log for error