pt-query-digest outputs "Reading from STDIN"
Bug #1456324 reported by
Ryan Olson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Triaged
|
Medium
|
Frank Cizmich |
Bug Description
The 2.2.14 version of pt-query-digest will print "Reading from STDIN..." even when not in debug mode. From the surrounding code, it looks like this ought to be a debug statement, is the output necessary? Would something like the attached patch work?
Changed in percona-toolkit: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Frank Cizmich (frank-cizmich) |
milestone: | none → 2.3.1 |
tags: | added: pt-query-digest |
Changed in percona-toolkit: | |
milestone: | 2.2.15 → none |
To post a comment you must log in.
Hi Ryan,
It's not a debug statement. This was a compromise "fix". The original problem was that if you gave the tool a file to read, and that file did not exist, it would assume that instead of a file it was a given a DSN (because of a rare use case where a DSN can be passed as a parameter).
In that case the tool would assume that STDIN was the source, and just sit and wait, confusing the user.
So, as to not alter the current parameter format, but still avoid confusing the user, that message is printed.
If this affects you negatively please mention it. Maybe we can find an alternate solution.