Skip to content

Commit

Permalink
Add logging to EventManager
Browse files Browse the repository at this point in the history
  • Loading branch information
austenmc committed Sep 16, 2016
1 parent c30c9a6 commit 1d148bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public function publish(string $event, array &$context)
*/
public function subscribe(string $pattern, string $class, string $library)
{
$this->g->getLogger()->addDebug("Subscribing event pattern={$pattern} class={$class} library={$library}");

try {
// Can we resolve this class?
$klass = new \ReflectionClass($class);
Expand Down

0 comments on commit 1d148bb

Please sign in to comment.