Logging attached entities

- Fixed, entity logger not logging modified entities, then they were
attached to the context.