Skip to content

Commit

Permalink
* Update log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ag-ramachandran committed Jun 26, 2024
1 parent 5814751 commit 17acab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logstash/outputs/kusto/ingestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def upload_async(path, delete_on_success)

def upload(path, delete_on_success)
file_size = File.size(path)
@logger.info("Sending file to kusto: #{path}. size: #{file_size}")
@logger.debug("Sending file to kusto: #{path}. size: #{file_size}")

# TODO: dynamic routing
# file_metadata = path.partition('.kusto.').last
Expand All @@ -159,7 +159,7 @@ def upload(path, delete_on_success)
@logger.warn("File #{path} is an empty file and is not ingested.")
end
File.delete(path) if delete_on_success
@logger.info("File #{path} sent to kusto.")
@logger.debug("File #{path} sent to kusto.")
rescue Errno::ENOENT => e
@logger.error("File doesn't exist! Unrecoverable error.", exception: e.class, message: e.message, path: path, backtrace: e.backtrace)
rescue Java::JavaNioFile::NoSuchFileException => e
Expand Down

0 comments on commit 17acab7

Please sign in to comment.