From 71175d99b6deda2f5ed5ca428985dd64f10052ad Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 21 Jul 2012 11:27:32 -0700 Subject: [PATCH] Log the cause of aborted async calls This was previously logging the AbortError, which doesn't give us useful information. --- lib/celluloid/calls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/celluloid/calls.rb b/lib/celluloid/calls.rb index 34e1cb2a..ee7aec68 100644 --- a/lib/celluloid/calls.rb +++ b/lib/celluloid/calls.rb @@ -99,7 +99,7 @@ def dispatch(obj) obj.send(@method, *@arguments, &@block) rescue AbortError => ex # Swallow aborted async calls, as they indicate the caller made a mistake - Logger.crash("#{obj.class}: async call `#{@method}' aborted!", ex) + Logger.crash("#{obj.class}: async call `#{@method}' aborted!", ex.cause) end end end