mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
18a7d2fd27
commit
53f7a64ccb
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ class LogStash::Runner < Clamp::StrictCommand
|
||||||
rescue => e
|
rescue => e
|
||||||
# if logger itself is not initialized
|
# if logger itself is not initialized
|
||||||
if LogStash::Logging::Logger.get_logging_context.nil?
|
if LogStash::Logging::Logger.get_logging_context.nil?
|
||||||
puts e
|
$stderr.puts "#{I18n.t("oops")} :error => #{e}, :backtrace => #{e.backtrace}"
|
||||||
else
|
else
|
||||||
logger.fatal(I18n.t("oops"), :error => e, :backtrace => e.backtrace)
|
logger.fatal(I18n.t("oops"), :error => e, :backtrace => e.backtrace)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue