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

Add utility code for throttled logging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • M4
    • 0.7.0
    • supportability, util
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: