daemon_generatorプラグインに加えてRailsでdaemons gemを使用しています。私は、この出力から理解するために非常に懸命に探していRailsでdaemons gemに関する問題
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>
:私はデーモンで、この出力ログファイルを取得しています。さまざまなエラーメッセージが表示されています。デーモンファイル内で呼び出さないため、./config/global_constants.confの問題ではないことがわかります。さらに、私のMacには2GBのメモリがあり、多くのプログラムが実行されていないので、それはメモリの問題だとは思わない。 SmsMessageについては、私は通常これを次のように使用しています:
scheduledMessagesParent = SmsMessage.valid.find(:all, :conditions => {:status => $SCHEDULED_MESSAGE})
私のウェブサイトのどこかで動作します! 私はそれは私が別の方法で私のモデルのパスを指定する必要が可能ですロガーが
ActiveRecord::Base.logger.info "....
を使用して呼ばれていることに気づきましたか?私は通常、ActiveRecord :: Baseを必要とせずにlogger.infoを使用してロガーを呼び出します。もしそうなら、それを行う方法?
この問題をデバッグする方法はありますか?スタックトレースまたはより良いエラーメッセージを表示する方法はありますか?