Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't log anything on production #43

Closed
johnnncodes opened this issue Dec 10, 2016 · 1 comment
Closed

Doesn't log anything on production #43

johnnncodes opened this issue Dec 10, 2016 · 1 comment

Comments

@johnnncodes
Copy link

johnnncodes commented Dec 10, 2016

For some reason it doesn't log anything on our production environment but it works fine on development environment. These are the lines that I added on both /config/environment/production.rb and /config/environment/development.rb:

  config.rails_semantic_logger.add_file_appender = false # disable logging to a file
  config.after_initialize do
    config.semantic_logger.add_appender(appender: :syslog, formatter: :json)
  end

It logs the active record queries in our rake tasks though. Any ideas on what I'm doing wrong?

Rails 4.2.6
ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-linux]
rails_semantic_logger (3.4.1)
semantic_logger (~> 3.3)

@johnnncodes
Copy link
Author

Closing this issue now... I'm using unicorn and I think I need to do this to make it work: http://rocketjob.github.io/semantic_logger/forking.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant