Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7539847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:29:25+00:00 2026-05-30T07:29:25+00:00

Something is wrong with the logs. They work fine on development, but in production

  • 0

Something is wrong with the logs. They work fine on development, but in production I can’t write my own messages.

I haven’t changed anything in the configuration files, other than installing Devise and Mongoid. But just in case, I tried uncommenting the line #config.log_level = :debug in production.rb

Controller:

class PagesController < ApplicationController
  def home
    logger.fatal 'bla'
  end

  def about
  end
end

Terminal (log permissions):

root@ubuntu:/srv/www/myapp# ls log -lah
total 496K
drwxr-xr-x  2 myapp root    4.0K 2012-02-21 17:18 .
drwxr-xr-x 14 root  root    4.0K 2012-02-20 14:54 ..
-rw-r--r--  1 myapp myapp    35K 2012-02-21 16:23 development.log
-rw-r--r--  1 myapp root       0 2012-02-17 18:27 .gitkeep
-rw-r--r--  1 root  root    447K 2012-02-21 17:47 passenger.80.log
-rw-r--r--  1 myapp myapp      0 2012-02-21 17:18 production.log

Terminal (passenger):

root@ubuntu:/srv/www/myapp# passenger start -e production -p 80 --user=myapp
=============== Phusion Passenger Standalone web server started ===============
PID file: /srv/www/myapp/tmp/pids/passenger.80.pid
Log file: /srv/www/myapp/log/passenger.80.log
Environment: production
Accessible via: http://0.0.0.0/

You can stop Phusion Passenger Standalone by pressing Ctrl-C.
===============================================================================
cache: [HEAD /] miss
cache: [GET /] miss
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:29:26+00:00Added an answer on May 30, 2026 at 7:29 am

    Assuming you’re on Rails 3.2.0 or Rails 3.2.1, this is a known issue (see https://github.com/rails/rails/issues/4277). It’s already been fixed, but hasn’t been released yet.

    A workaround is to add an initializer with:

    Rails.logger.instance_variable_get(:@logger).instance_variable_get(:@log_dest).sync = true if Rails.logger
    

    Update: Rails 3.2.2 fixes this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I may be doing something wrong, but I haven't been able to find a
I must be doing something wrong. I can't seem to execute my CustomValidator's ServerValidate
Maybe I'm doing something wrong but I have a textarea where I've specified textAlign
There is something wrong with this trigger. But what? CREATE TRIGGER MYCOOLTRIGGER AFTER INSERT
Is something wrong in :g-2-g/3/ or is the recursion in the global just missing?
Am I doing something wrong or is it not possible to specify a generic
There's something wrong with my code or I'm just not understanding this fully. I
Am I doing something wrong is this a known issue with the ASP.NET MVC
Unless I am doing something wrong, the way I am supposed to use ConfigurationSection,
I must be doing something wrong here (because really, what are the chances of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.