Skip to content

Commit

Permalink
Merge pull request #246 from rgp/update/update-logger-rails72
Browse files Browse the repository at this point in the history
Updates bold attribute to named attribute on preparation for Rails 7.2
  • Loading branch information
mnovelo committed Apr 2, 2024
2 parents 4f95aa2 + 4c49d87 commit 1de1f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/apartment/log_subscriber.rb
Expand Up @@ -21,9 +21,9 @@ def debug(progname = nil, &block)
end

def apartment_log
database = color("[#{database_name}] ", ActiveSupport::LogSubscriber::MAGENTA, true)
database = color("[#{database_name}] ", ActiveSupport::LogSubscriber::MAGENTA, bold: true)
schema = current_search_path
schema = color("[#{schema.tr('"', '')}] ", ActiveSupport::LogSubscriber::YELLOW, true) unless schema.nil?
schema = color("[#{schema.tr('"', '')}] ", ActiveSupport::LogSubscriber::YELLOW, bold: true) unless schema.nil?
"#{database}#{schema}"
end

Expand Down

0 comments on commit 1de1f1b

Please sign in to comment.