diff options
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r-- | core/EventDispatcher.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php index 9b4af816da..9a07801d22 100644 --- a/core/EventDispatcher.php +++ b/core/EventDispatcher.php @@ -140,7 +140,13 @@ class EventDispatcher extends Singleton */ public function clearAllObservers() { - $this->extraObservers = array(); + foreach ($this->extraObservers as $eventName => $eventObservers) { + if (strpos($eventName, 'Log.format') === 0) { + continue; + } + + $this->extraObservers[$eventName] = array(); + } } /** |