matrix-org/synapse

Add additional debug logging to MultiWriterIdGenerator.__init__ and get_cache_dict

Open

#9443 aperta il 18 feb 2021

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (2196 fork)batch import
O-OccasionalS-TolerableT-Taskgood first issue

Metriche repository

Star
 (11.713 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

We should add debug logging to MultiWriterIdGenerator similar to that in StreamIdGenerator, per https://github.com/matrix-org/synapse/issues/9268#issuecomment-770190320:

If MultiWriterIdGenerator.__init__ and get_cache_dict included some logger.debug, this would be a lot less confusing to diagonose.

(I mention MultiWriterIdGenerator specifically, because StreamIdGenerator.__init__ does write debug, via _load_current_id, and it is quite helpful, and the inconsistency is extra confusing.)

Guida contributor