Method: Webhookdb::Async._setup_common
- Defined in:
- lib/webhookdb/async.rb
._setup_common ⇒ Object
138 139 140 141 142 143 144 145 |
# File 'lib/webhookdb/async.rb', line 138 def self._setup_common raise "Async already setup, only call this once" if Amigo.structured_logging Amigo.structured_logging = true Amigo.log_callback = lambda { |j, lvl, msg, o| lg = j ? Appydays::Loggable[j] : Webhookdb::Async::JobLogger.logger lg.send(lvl, msg, o) } end |