You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails Semantic Logger Version, if applicable. rails_semantic_logger (4.17.0)
Rails configuration. Only need the settings related to Rails Semantic Logger and Semantic Logger.
# Heroku compability & development modeifENV['RAILS_LOG_TO_STDOUT'].present? || Rails.env.development?
$stdout.sync=trueconfig.semantic_logger.add_appender(io: $stdout,formatter: config.rails_semantic_logger.format)end# AppSignal integrationappsignal_logger=Appsignal::Logger.new('rails',format: Appsignal::Logger::LOGFMT)config.semantic_logger.add_appender(logger: appsignal_logger,formatter: :logfmt)# Disable logging to a fileconfig.rails_semantic_logger.add_file_appender=false# "info" includes generic and useful information about system operation, but avoids logging too much# information to avoid inadvertent exposure of personally identifiable information (PII). If you# want to log everything, set the level to "debug".config.log_level=ENV.fetch('RAILS_LOG_LEVEL','info').downcase.strip.to_sym# Prepend all log lines with the following tags.config.log_tags={subdomain: :subdomain,request_id: :request_id}# Disable logging of assetsconfig.rails_semantic_logger.quiet_assets=trueconfig.solid_queue.logger=SemanticLogger['SolidQueue']
Full Stack Trace, if an exception is being raised.
lib/active_job/logging.rb:32 logger_tagged_by_active_job?
lib/active_job/logging.rb:24 tag_logger
lib/active_job/logging.rb:14 block (2 levels) in <module:Logging>
lib/active_support/callbacks.rb:130 instance_exec
lib/active_support/callbacks.rb:130 block in run_callbacks
lib/active_support/callbacks.rb:141 run_callbacks
lib/active_job/enqueuing.rb:93 enqueue
lib/active_job/enqueuing.rb:60 perform_later
app/models/concerns/publication/searchable.rb:238 block in elasticsearch_index_async
I am using ActiveJob, SolidQueue gems
Expected Behavior
I just wanted to call IndexerJob.perform_later(operation.to_s, self.class.to_s, id) successfully
Environment
ruby 3.2.4 (2024-04-23 revision af471c0e01) [x86_64-linux]
semantic_logger (4.16.0)
rails (7.1.3.4)
rails_semantic_logger (4.17.0)
Expected Behavior
I just wanted to call
IndexerJob.perform_later(operation.to_s, self.class.to_s, id)
successfullyActiveJob::Logging has the following method:
This method expects a formatter to respond to
current_tags
method.Source: https://github.com/rails/rails/blob/v7.1.3.4/activejob/lib/active_job/logging.rb
Actual Behavior
Formatter is
nil
and thus, unable to respond tocurrent_tags
method.Similar Issues
The logstash-logger gem had a similar issue in 2017: dwbutler/logstash-logger#112
Pull Request
The text was updated successfully, but these errors were encountered: