cartodb-4.42/config/initializers/04_install_carto_logger.rb

13 lines
233 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
Carto::Common::Logger.install
# Log more easily from all models
ActiveRecord::Base.class_eval do
include ::LoggerHelper
extend ::LoggerHelper
end
Sequel::Model.class_eval do
include ::LoggerHelper
extend ::LoggerHelper
end