Forum: Ruby on Rails Starling and Workling problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
78ee9d5c27eebd474b9552c6203571c0?d=identicon&s=25 Marc (Guest)
on 2008-12-20 21:37
(Received via mailing list)
Hi all

I am trying to run a background task with Starling and Workling,
following Ryan Bates' screencast.
My problem is that whenever I execute my async_method, nothing
happens. No errors are generated, and the app continues as though
nothing happened.
My question is then, how do I debug my working? I know the ascync
method is being called, but there is nothing in the log files and no
degugging problems are reported. So how do I debug it?
debugger doesnt break when called from the workling and no
logger.debug messages from it are printed in my logs.

Thanks
Marc
5aee3e06f6a9ca007f0fe052f87e051c?d=identicon&s=25 Louis (Guest)
on 2008-12-30 10:53
(Received via mailing list)
add this inside your worker class

BG_LOGGER = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}-
background.log")

I can't rememeber where I read this but it worked for me.
This topic is locked and can not be replied to.