مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
fix(logging): fix spelling of graylog
هذا الالتزام موجود في:
@@ -34,7 +34,7 @@ logging:
|
||||
root: # Automatically determined based on config root
|
||||
max_log_file_size: 20
|
||||
max_log_files: 10
|
||||
greylog:
|
||||
graylog:
|
||||
host:
|
||||
port: 12201
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ module Postal
|
||||
|
||||
def add(severity, message = nil, progname = nil)
|
||||
super
|
||||
if severity >= @level && n = self.class.greylog_notifier
|
||||
if severity >= @level && n = self.class.graylog_notifier
|
||||
begin
|
||||
if message.nil?
|
||||
message = block_given? ? yield : progname
|
||||
@@ -26,12 +26,12 @@ module Postal
|
||||
true
|
||||
end
|
||||
|
||||
def self.greylog?
|
||||
!!Postal.config.logging.greylog&.host
|
||||
def self.graylog?
|
||||
!!Postal.config.logging.graylog&.host
|
||||
end
|
||||
|
||||
def self.greylog_notifier
|
||||
@greylog_notifier ||= greylog? ? GELF::Notifier.new(Postal.config.logging.greylog.host, Postal.config.logging.greylog.port) : nil
|
||||
def self.graylog_notifier
|
||||
@graylog_notifier ||= graylog? ? GELF::Notifier.new(Postal.config.logging.graylog.host, Postal.config.logging.graylog.port) : nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم