SkygearIO / py-skygear

Skygear Cloud Code Python SDK
https://skygear.io
Other
8 stars 20 forks source link

"Replacing previously registered event 'init'" printed to log multiple times #211

Closed cheungpat closed 6 years ago

cheungpat commented 6 years ago

A user observed the captioned log message appearing in the log multiple times despite they have not registered the init event. The problem does not seem to affect program behavior but this is worth looking into because this is related to #209.

cheungpat commented 6 years ago

The problem described here only occurs if using ZMQ transport and using workers. This is because init event is registered as part of CommonTransport constructor, which ZMQ transport+worker will have multiple instances of CommonTransport sub-classes.