Files
twenty/packages/twenty-server
Weiko 9a7658391b Remove noisy actor context injection logs (#23649)
## Context

`ActorFromAuthContextService` runs while preparing records for create
and update operations. Every actor-field injection logged the complete
list of field names found in the object's metadata. It also logged when
an object did not contain the actor field, even though skipping
injection is an expected control-flow path.

These messages are not actionable in normal operation. On a frequently
used path, building and emitting them adds avoidable string allocation,
serialization, output, and log-ingestion work.

## What changed

- Remove the metadata field-list info log.
- Remove the info log for the expected missing-field path.
- Remove the now-unused NestJS logger instance.

## Safety

This only removes routine informational logging. Actor metadata lookup,
missing-field handling, record cloning, and `createdBy` / `updatedBy`
injection are unchanged. Errors are not suppressed, including the
existing error for an unsupported authentication context.

## Expected impact

This reduces application log volume and avoids repeated formatting of
metadata field-name arrays on record mutations. It is a small hot-path
cleanup intended to reduce allocation and logging overhead, not a
standalone fix for API tail latency.

## Validation

- Oxfmt check on the changed service
- Oxlint on the changed service
- `ActorFromAuthContextService` Jest suite, 4 tests passing
- `git diff --check`
2026-07-31 14:57:46 +00:00
..