lib/alephant/broker/component_factory.rb in alephant-broker-3.5.2 vs lib/alephant/broker/component_factory.rb in alephant-broker-3.5.3
- old
+ new
@@ -17,10 +17,10 @@
Component.new(
component_meta,
@load_strategy.load(component_meta)
)
rescue Alephant::Broker::Errors::ContentNotFound => e
- logger.warn "Broker.ComponentFactory.create: Exception raised (ContentNotFound)"
+ logger.warn "Broker.ComponentFactory.create: Exception raised (ContentNotFound) for #{component_meta.component_key}"
logger.metric "ContentNotFound"
ErrorComponent.new(component_meta, 404, e)
rescue => e
logger.warn "Broker.ComponentFactory.create: Exception raised (#{e.message}, #{e.backtrace.join('\n')})"
logger.metric "ExceptionRaised"