Issue Task New Quiet

#110719LinkFactory / Logging way too noisy

Philipp Wrann 09/16/26, 09:48 updated 10/09/26, 08:13

Description

The LinkFactory logs the whole exception when something can not be linked. While this might be useful for debugging in some situations, this tends to make logs too noisy in production because the exception is triggered by bad user data. So in every single request you will spam your log with the whole stack trace when the exception gets serialized.

In my case the content editors forgot to translate lots of pages (new site in development) and in every request my container log is spammed with useless stack traces (the whole middleware-chain included and so on).

Common situations, that will trigger the log pollution:

  • page is not translated but it should be
  • page is hidden but was linked somewhere
  • cross-site-link with non-matching language configurations

I suggest to only log information, that is required to investigate further, like what could not be linked.

When i start my stack locally (debug settings) and the runtime logs are displayed, 1 single request will produce 0.5MB of entirely useless stack traces in the logs, this is crazy

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[TASK] LinkFactory / Logging way too noisy Resolves: #110719 Releases: main

History 2

  1. Philipp Wrann commented <span data-processor="relativetime" data-value="2026-10-09T08:13:09+00:00" > 10/09/26, 08:13 </span>

    Here is a hotfix to decrease the verbosity:
    https://github.com/TYPO3/typo3/compare/main…MajPay:typo3:logging-verbosity-link-factory?expand=1

    I don’t think this is the correct way to solve the issue. I think the Log Writer should not serialize whole exceptions, then this issue would be solved. But that’s more of a core-devs decision.