Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-77

Add utility code for throttled logging

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: M4
    • Fix Version/s: 0.7.0
    • Component/s: supportability, util
    • Labels:
      None

      Description

      We have a few places where we'd probably want to log, but are afraid of potential log spew situations. For example, when RPC queues overflow, adding a log message on every RPC may be too expensive. We should add a throttled logger utility that will consolidate repeated messages and be constrained to actually outputting once every second.

        Attachments

        1. test.cc
          2 kB
          Todd Lipcon

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: