Closed (fixed)
Project:
Entity Change Default Language
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2026 at 09:31 UTC
Updated:
18 Oct 2026 at 11:55 UTC
Jump to comment: Most recent
Comments
Comment #2
akash_deep commentedWorking on this, MR coming shortly.
Comment #4
akash_deep commentedReplaced watchdog_exception() with \Drupal::logger() call. also removed the Error::logException fallback and the unused Error class import since both are unnecessary now. set to needs review.
Comment #5
akash_deep commentedComment #8
facine commentedThanks @akash_deep for the MR. I kept your commit and added one on top:
\Drupal::logger()->error($exception->getMessage())dropped the exception class and the backtrace, so the fallback now logs through the injected logger ($this->getLogger()) with the same context asError::logException().The
watchdog_exceptionignore is removed from phpstan.neon and phpstan passes again. A new kernel test,LoggingFallbackTest, checks that a failed save is logged with the class, the message and the backtrace.The fallback for Drupal 9 and 10.0 stays for now. It goes away when the core requirement is raised for Drupal 12 (#3597658).