File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212 exit
1313end
1414# Create logger
15- http_device = Logtail ::LogDevices ::HTTP . new ( ARGV [ 0 ] , ingesting_host : ARGV [ 1 ] )
15+ http_device = Logtail ::LogDevices ::HTTP . new ( ARGV [ 0 ] , logtail_host : ARGV [ 1 ] )
1616logger = Logtail ::Logger . new ( http_device )
1717
1818# Filter logs that shouldn't be sent to Better Stack, see {Logtail::LogEntry} for available attributes
Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ class HTTP
6969 # Logtail::Logger.new(http_log_device)
7070 def initialize ( source_token , options = { } )
7171 # Handle backward-compatibility of argument names
72- options [ :ingesting_host ] ||= options [ :ingesting_host ] if options [ :ingesting_host ] . present?
73- options [ :ingesting_port ] ||= options [ :logtail_port ] if options [ :logtail_port ] . present?
74- options [ :ingesting_scheme ] ||= options [ :logtail_scheme ] if options [ :logtail_scheme ] . present?
72+ options [ :ingesting_host ] ||= options [ :logtail_host ]
73+ options [ :ingesting_port ] ||= options [ :logtail_port ]
74+ options [ :ingesting_scheme ] ||= options [ :logtail_scheme ]
7575
7676 @source_token = source_token || raise ( ArgumentError . new ( "The source_token parameter cannot be blank" ) )
7777 @ingesting_host = options [ :ingesting_host ] || ENV [ 'INGESTING_HOST' ] || ENV [ 'LOGTAIL_HOST' ] || DEFAULT_INGESTING_HOST
You can’t perform that action at this time.
0 commit comments