Skip to content

Commit 669e835

Browse files
committed
Improved error logging (backtrace).
1 parent 46646c4 commit 669e835

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/async/container/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def run
198198
begin
199199
handler.call
200200
rescue SetupError => error
201-
Console.error(self) {error}
201+
Console.error(self, error)
202202
end
203203
else
204204
raise

lib/async/container/generic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def spawn(name: nil, restart: false, key: nil, &block)
171171
Console.debug(self) {"#{child} exited with #{status}"}
172172
else
173173
@statistics.failure!
174-
Console.error(self) {status}
174+
Console.error(self, status: status)
175175
end
176176

177177
if restart

lib/async/container/process.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def self.fork(**options)
7575
rescue Interrupt
7676
# Graceful exit.
7777
rescue Exception => error
78-
Console.error(self) {error}
78+
Console.error(self, error)
7979

8080
exit!(1)
8181
end

0 commit comments

Comments
 (0)