diff --git a/lib/vmdb/loggers.rb b/lib/vmdb/loggers.rb index 1d9597c70f4..4adb7757410 100644 --- a/lib/vmdb/loggers.rb +++ b/lib/vmdb/loggers.rb @@ -59,6 +59,8 @@ def self.create_logger(log_file_name, logger_class = ManageIQ::Loggers::Base) return nil unless (logger = create_raw_container_logger) progname = progname_from_file(log_file_name) + logger.progname = progname + create_wrapper_logger(progname, logger_class, logger) end @@ -71,6 +73,8 @@ def self.create_logger(log_file_name, logger_class = ManageIQ::Loggers::Base) return nil unless (logger = create_raw_journald_logger) progname = progname_from_file(log_file_name) + logger.progname = progname + create_wrapper_logger(progname, logger_class, logger) end @@ -104,8 +108,6 @@ def logger.wrapped_logger end logger.extend(ActiveSupport::Logger.broadcast(wrapped_logger)) - - wrapped_logger.progname = progname end end