Starling and Workling problem


#1

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


#2

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.