should not log when id is not primary key for the model