Actions
Bug #13427
closedProgname not defined for SYSLOG logger
Difficulty:
trivial
Triaged:
Bugzilla link:
Pull request:
Description
According to Ruby API (http://ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html#method-i-add) if both message and block are missing, progname should be treated as the message. The code in log decorator (buffer) has a bug that was working incorrectly. This shows up if there is SYSLOG logger configured and an error occurs:
/usr/share/foreman-proxy/lib/proxy/log_buffer/decorator.rb:19:in `add': undefined method `progname' for #<Syslog::Logger:0x0000000204a8b0> (NoMethodError) from /usr/share/foreman-proxy/lib/proxy/log_buffer/decorator.rb:50:in `error' from /usr/share/foreman-proxy/lib/launcher.rb:135:in `rescue in launch' from /usr/share/foreman-proxy/lib/launcher.rb:110:in `launch' from bin/smart-proxy:6:in `<main>'
Actions