Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-346

LP #1099933: pt-stalk is too verbose, fills up log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Raghavendra D Prabhu last update 15-02-2013 17:10:49

      pt-stalk prints like

      Check results: Threads_running=160, matched=no, cycles_true=0

      every second.

      Now, when running pt-stalk in daemon mode and it is writing to a
      log, running it for a while can really fill up the logs.

      It would be better to have a quiet option or verbosity levels.

      I used like

      if [[ "$matched" ]]; then
      local msg="Check results: $OPT_VARIABLE=$value, matched=${matched:-no}, cycles_true=$cycles_true"
      log "$msg"
      fi

      to print only when it is matched.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpjirasync lpjirasync (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: