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

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/supermarket_logs/