Adding a log error call