Skip to main content

Supermarket Logs

[edit on GitHub]

The Chef Supermarket omnibus package does not log Ruby on Rails messages by default. To enable debug logging, edit the /opt/supermarket/embedded/service/supermarket/config/environments/production.rb file and set the config.log_level setting to :debug:

config.logger = Logger.new('/var/log/supermarket/rails/rails.log')
config.logger.level = 'DEBUG'
config.log_level = :debug

Save the file, and then restart the Ruby on Rails service:

supermarket-ctl restart rails

Was this page helpful?

×









Search Results