Skip to content
Snippets Groups Projects
Commit 3205c7d6 authored by juampy's avatar juampy Committed by Bojan Zivanovic
Browse files

Issue #2799279 by juampynr: Set the right log channel when creating an entity

parent f12bdcaf
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ class RevisionableContentEntityForm extends ContentEntityForm {
$insert = $this->entity->isNew();
$this->entity->save();
$context = ['@type' => $this->entity->bundle(), '%info' => $this->entity->label()];
$logger = $this->logger($this->entity->id());
$logger = $this->logger('content');
$bundle_entity = $this->getBundleEntity();
$t_args = ['@type' => $bundle_entity ? $bundle_entity->label() : 'None', '%info' => $this->entity->label()];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment