From c4289b82daa2eae3d142413d7d032d38d8fffcf8 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 9 Jan 2021 11:33:29 -0700 Subject: [PATCH] Better trace message for initial hook processing --- src/spectator/example_group.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spectator/example_group.cr b/src/spectator/example_group.cr index ab27112..6befc14 100644 --- a/src/spectator/example_group.cr +++ b/src/spectator/example_group.cr @@ -9,7 +9,7 @@ module Spectator include Iterable(SpecNode) group_event before_all do |hooks| - Log.trace { "Processing before_all hooks" } + Log.trace { "Processing before_all hooks for #{self}" } if (parent = group?) parent.call_once_before_all @@ -22,7 +22,7 @@ module Spectator end group_event after_all do |hooks| - Log.trace { "Processing after_all hooks" } + Log.trace { "Processing after_all hooks for #{self}" } hooks.each do |hook| Log.trace { "Invoking hook #{hook}" } @@ -35,7 +35,7 @@ module Spectator end example_event before_each do |hooks, example| - Log.trace { "Processing before_each hooks" } + Log.trace { "Processing before_each hooks for #{self}" } if (parent = group?) parent.call_before_each(example) @@ -48,7 +48,7 @@ module Spectator end example_event after_each do |hooks, example| - Log.trace { "Processing after_each hooks" } + Log.trace { "Processing after_each hooks for #{self}" } hooks.each do |hook| Log.trace { "Invoking hook #{hook}" }