diff --git a/core/lib/Drupal/Core/Watchdog/WatchdogChannelFactory.php b/core/lib/Drupal/Core/Watchdog/WatchdogChannelFactory.php index e2b748a..f774ff5 100644 --- a/core/lib/Drupal/Core/Watchdog/WatchdogChannelFactory.php +++ b/core/lib/Drupal/Core/Watchdog/WatchdogChannelFactory.php @@ -24,7 +24,7 @@ class WatchdogChannelFactory extends ContainerAware { */ public function getLogger($channel) { try { - return $this->container->get('watchdog.channel.' . $channel); + return $this->container->get('watchdog.channel.' . str_replace(' ', '_', $channel)); } catch (\InvalidArgumentException $e) { return $this->container->get('watchdog.channel.default');