Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16749

DiagnosticEventService.publish logging logs events without an overridden toString causing less useful debug logs

    XMLWordPrintableJSON

Details

    Description

      The DiagnosticEventService logs each publish (if the event is enabled) using a logger, but the different events do not override the toString; this leaves the following logs

      Publishing: org.apache.cassandra.gms.GossiperEvent@3cadeef2
      Publishing: org.apache.cassandra.gms.GossiperEvent@6159419d
      Publishing: org.apache.cassandra.service.PendingRangeCalculatorServiceEvent@18e52b1
      Publishing: org.apache.cassandra.locator.TokenMetadataEvent@43a76a1a
      etc.
      

      To make these logs more meaningful, we might want to consider matching the persistent logic and convert the event to a map and then logging the map

      Attachments

        1. 16749-trunk.txt
          2 kB
          Zoltan Ersek

        Activity

          People

            zoltanersek Zoltan Ersek
            dcapwell David Capwell
            Zoltan Ersek
            Michael Semb Wever
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m