Is there a Rails equivalent for Forest debug mode?

Hi guys, on this page Display extensive logs - Documentation I see you have a debug mode for node apps. Is there anything comparable for Rails apps ?

Thanks,

Remi

Hi @remi_okarito,

I think you can use anything available in the Rails ecosystem to adapt the log level to output.
But maybe you have a specific need you want to share with us?

Yes, I’m trying to understand which methods lead to this issue below

(I’m trying to understand what’s wrong in RAILS and STI: failure to detect table inheritance, crash - #9 by remi_okarito)

[2021-02-05 18:26:16] Forest 🌳🌳🌳  Record Show error: Invalid single-table inheritance type: Providers::Amadeus::Flights::ItineraryPricing is not a subclass of ItineraryPricing
/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/inheritance.rb:233:in `find_sti_class'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/inheritance.rb:207:in `discriminate_class_for_record'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/persistence.rb:69:in `instantiate'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency/join_part.rb:66:in `instantiate'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:248:in `construct_model'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:231:in `block in construct'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:208:in `each'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:208:in `construct'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:119:in `block (2 levels) in instantiate'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/result.rb:57:in `block in each'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/result.rb:57:in `each'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/result.rb:57:in `each'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:116:in `block in instantiate'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/associations/join_dependency.rb:115:in `instantiate'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:556:in `block (2 levels) in exec_queries'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/finder_methods.rb:398:in `apply_join_dependency'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:550:in `block in exec_queries'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:584:in `skip_query_cache_if_necessary'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:547:in `exec_queries'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:422:in `load'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation.rb:200:in `records'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/finder_methods.rb:504:in `find_take'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/finder_methods.rb:103:in `take'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/finder_methods.rb:454:in `find_one'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/finder_methods.rb:435:in `find_with_ids'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/relation/finder_methods.rb:69:in `find'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/forest_liana-5.4.0/app/services/forest_liana/resource_getter.rb:14:in `perform'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/forest_liana-5.4.0/app/controllers/forest_liana/resources_controller.rb:93:in `show'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/abstract_controller/base.rb:194:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/callbacks.rb:132:in `run_callbacks'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/abstract_controller/callbacks.rb:41:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/rescue.rb:22:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/notifications.rb:168:in `block in instrument'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/notifications.rb:168:in `instrument'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.4/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/abstract_controller/base.rb:134:in `process'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionview-5.2.4.4/lib/action_view/rendering.rb:32:in `process'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal.rb:191:in `dispatch'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actionpack-5.2.4.4/lib/action_controller/metal.rb:236:in `block in action'
	/Users/macbook/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/forest_liana-5.4.0/app/controllers/forest_liana/router.rb:40:in `call'

You can use:

config.log_level = :debug

in one of the environment config in config/environments/...