mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
#8271 fix one excess '/' added to log config file uri on *nix in runner.rb
Fixes #8272
This commit is contained in:
parent
f7eca432c3
commit
3fc1303ffa
1 changed files with 2 additions and 1 deletions
|
@ -251,7 +251,8 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
log4j_config_location = ::File.join(setting("path.settings"), "log4j2.properties")
|
||||
|
||||
# Windows safe way to produce a file: URI.
|
||||
LogStash::Logging::Logger::reconfigure(URI.join("file:///" + File.absolute_path(log4j_config_location)).to_s)
|
||||
file_schema = "file://" + (LogStash::Environment.windows? ? "/" : "")
|
||||
LogStash::Logging::Logger::reconfigure(URI.join(file_schema + File.absolute_path(log4j_config_location)).to_s)
|
||||
end
|
||||
# override log level that may have been introduced from a custom log4j config file
|
||||
LogStash::Logging::Logger::configure_logging(setting("log.level"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue