You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Semb Wever (Jira)" <ji...@apache.org> on 2021/06/20 15:48:00 UTC
[jira] [Comment Edited] (CASSANDRA-16749)
DiagnosticEventService.publish logging logs events without an overridden
toString causing less useful debug logs
[ https://issues.apache.org/jira/browse/CASSANDRA-16749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366199#comment-17366199 ]
Michael Semb Wever edited comment on CASSANDRA-16749 at 6/20/21, 3:47 PM:
--------------------------------------------------------------------------
+1
On the side, a question of curiosity: do we want to add a comment why we are avoiding {{DiagnosticEvent.toString()}}? (more info around that found in CASSANDRA-13457)
was (Author: michaelsembwever):
+1
> DiagnosticEventService.publish logging logs events without an overridden toString causing less useful debug logs
> ----------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-16749
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16749
> Project: Cassandra
> Issue Type: Improvement
> Components: Observability/Logging
> Reporter: David Capwell
> Assignee: Zoltan Ersek
> Priority: Low
> Fix For: 4.0.x, 4.x
>
> Attachments: 16749-trunk.txt
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
> {code}
> 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.
> {code}
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org