mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
e0ebcaacd9
Using plain threads in Sidekiq's Celluloid-based actor model is a little bit like riding a motorcycle without a helmet, so let's try to fit in a bit better.
12 lines
274 B
Ruby
12 lines
274 B
Ruby
module Sidetiq
|
|
# Public: Sidetiq logging interface.
|
|
module Logging
|
|
%w(fatal error warn info debug).each do |level|
|
|
level = level.to_sym
|
|
|
|
define_method(level) do |msg|
|
|
Sidetiq.logger.__send__(level, "[Sidetiq] #{msg}")
|
|
end
|
|
end
|
|
end
|
|
end
|