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.
Marc (Guest)
on 2008-12-20 22:37
(Received via mailing list)
Hi all

I am trying to run a background task with Starling and Workling,
following Ryan B.' 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
Louis (Guest)
on 2008-12-30 11: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.