Log errors in logs