似乎由于线程问题 logger.warn (这就是我测试的)没有产生任何输出?我的代码与此类似:
def deliver(args)
logger.info "delivery start"
thread_pool.defer(:deliver_deferred, args)
logger.info "delivery end"
end
def deliver_deferred(args)
logger.warn "whatsoever"
end
任何想法?
似乎由于线程问题 logger.warn (这就是我测试的)没有产生任何输出?我的代码与此类似:
def deliver(args)
logger.info "delivery start"
thread_pool.defer(:deliver_deferred, args)
logger.info "delivery end"
end
def deliver_deferred(args)
logger.warn "whatsoever"
end
任何想法?