Ruby on rails Rails中的守护进程gem问题

Ruby on rails Rails中的守护进程gem问题,ruby-on-rails,ruby-daemons,Ruby On Rails,Ruby Daemons,除了daemon_生成器插件之外,我还将daemons gem与Rails一起使用。我将在守护进程日志文件中获得以下输出: Logfile created on Sat May 09 20:10:35 -0700 2009 by / -below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application ex

除了daemon_生成器插件之外,我还将daemons gem与Rails一起使用。我将在守护进程日志文件中获得以下输出:

 Logfile created on Sat May 09 20:10:35 -0700 2009 by /
-below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally ***
#<NameError: uninitialized constant SmsMessage>
-below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***
#<NoMemoryError: failed to allocate memory>
#<SystemStackError: stack level too deep>
#<fatal: exception reentered>
#<MissingSourceFile: no such file to load -- ./config/global_constants.conf>
#<NameError: uninitialized constant SmsMessage>
在我的网站上其他地方都可以使用!! 我注意到记录器被称为使用

ActiveRecord::Base.logger.info "....
我是否可以用另一种方式指定模型的路径?我通常使用logger.info调用记录器,而不需要ActiveRecord::Base。如果是这样,怎么做


你知道如何调试这个问题吗?有没有办法显示堆栈跟踪或更好的错误消息?

我通过在Rails环境中加载守护进程解决了这个问题。我从中获得信息的教程中没有包含它,但它现在起作用了:

ActiveRecord::Base.logger.info "....