# Workling not outputting to production.log

**URL:** <https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089>\
**Category:** Rails\
**Created:** [April 9, 2009, 12:33am UTC](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089 "2009-04-09T00:33:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![novaruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/848f3c/32.png) [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Post date:** [April 9, 2009, 12:33am UTC](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089/1 "2009-04-09T00:33:40Z")

</div>

I have workling/starling setup and working for both production and  
development to send a welcome email after a user signs up.

However, in the production environment, it refuses to output to the log  
file production.log, however in development environment, everything  
outputs fine in development.log

I have the workling\_client started as the same uid and gid as the  
application and made sure it has the same permission as the  
production.log file.

Has anyone else experienced this before?

Thanks!

---

<div class="post-metadata">

**Author:** ![novaruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/848f3c/32.png) [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Post date:** [April 10, 2009, 9:11am UTC](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089/2 "2009-04-10T09:11:56Z")

</div>

Finally figured this out, and posting it incase anyone else runs into  
this issue.

It has to do with logger buffers everything sent to is and does not auto  
flush in production environment.

So a quick fix is to call logger.flush whenever the worker completes,  
probably a better way to do this by putting it in some after filter, but  
not sure if workling has such a filter…

---

<div class="post-metadata">

**Author:** ![novaruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/848f3c/32.png) [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Post date:** [April 11, 2009, 8:47am UTC](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089/3 "2009-04-11T08:47:44Z")

</div>

Albert,

thank you so much for this info. I have posted this quation twice and  
not received a response.

Tried it and it is the solution.

It has been irritating me for a while, but I just haven’t had time to  
investigate it.

Many thanks  
Tonypm

---

<div class="post-metadata">

**Author:** ![novaruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/848f3c/32.png) [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Post date:** [May 4, 2009, 9:44am UTC](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089/4 "2009-05-04T09:44:55Z")

</div>

Thanks for posting this. It really should be explained in the  
Workling documentation.

On Apr 10, 3:11 am, Albert W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
