Skip to content

Fix log format in opening file#53

Open
tac0x2a wants to merge 1 commit into
logstash-plugins:mainfrom
tac0x2a:fix/file-open-close-log-format
Open

Fix log format in opening file#53
tac0x2a wants to merge 1 commit into
logstash-plugins:mainfrom
tac0x2a:fix/file-open-close-log-format

Conversation

@tac0x2a

@tac0x2a tac0x2a commented May 27, 2017

Copy link
Copy Markdown

Change opening-file log format to same format to "closed file" .

@jsvd jsvd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. sorry to have taken a year to get to this
  2. we tend to use structured logging as much as possible, so I'd like to instead change the log line that isn't using it. i.e. changing:

@logger.info("Closing file %s" % path)

to

@logger.info("Closing file", :path => path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants