mirror of
https://github.com/jimeh/amqp-failover.git
synced 2026-02-19 10:56:44 +00:00
19 lines
230 B
Ruby
19 lines
230 B
Ruby
# encoding: utf-8
|
|
|
|
module ServerHelper
|
|
include AMQP::Server
|
|
|
|
class << self
|
|
def log
|
|
@@log ||= []
|
|
end
|
|
attr_writer :log
|
|
end
|
|
|
|
# log & silence STDOUT output
|
|
def log(*args)
|
|
@@log << args
|
|
end
|
|
|
|
end
|