Skip to content

Commit

Permalink
Added warning for deprecated path config var
Browse files Browse the repository at this point in the history
  • Loading branch information
MonishkaDas committed Sep 24, 2024
1 parent 117a2b4 commit 0110ae6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/logstash/outputs/kusto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class LogStash::Outputs::Kusto < LogStash::Outputs::Base
# Mapping name - deprecated, use json_mapping
config :mapping, validate: :string, deprecated: true

# Path - deprecated
config :path, validate: :string, deprecated: true

# TODO: will be used to route events to many tables according to event properties
config :dynamic_event_routing, validate: :boolean, default: false
Expand Down Expand Up @@ -92,6 +94,10 @@ def register

@ingestor = Ingestor.new(ingest_url, app_id, app_key, app_tenant, managed_identity, cli_auth, database, table, final_mapping, proxy_host, proxy_port, proxy_protocol, @logger, executor)

# Deprecation warning for path
if @path
@logger.warn("The 'path' configuration option is deprecated and will be removed in a future release.")
end
end


Expand Down

0 comments on commit 0110ae6

Please sign in to comment.