Log language ISO codes instead of language names #19259
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
Resolves #19252
Description
The linked issue shows that for sites with lots of languages, we can overrun the available field size when logging the details of a save or publish operation. I've resolved this by recognising that we don't really need to log the full language name. The ISO code is sufficient and more consistent to be able to identify it, and is much shorter.
I realised having completed this we already had a partial fix from #15263 - but this was only for new installs, so we could have more upgrade sites in future that run into this. Hence I still felt it was worth changing what we log here.
Although only logging, it's theoretically a behavioural breaking change - perhaps someone was relying on and already parsing this log entries? - so it would make sense in a major release, hence targeted for 16.