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.
On Dec 20, 12:36 pm, Marc
<darklin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---