The logging cookbook has a good snippet on using the extra keyword to add contextual info to output. It also suggests not using Logger instances per connection like we do.
It means changing a lot of log message calls for maybe minimal benefit unless we use a LogAdapter. I'm split on what to do since generally there's only one connection / event loop per FS process in switchio and maybe it's not worth the effort?
The
loggingcookbook has a good snippet on using theextrakeyword to add contextual info to output. It also suggests not usingLoggerinstances per connection like we do.It means changing a lot of log message calls for maybe minimal benefit unless we use a
LogAdapter. I'm split on what to do since generally there's only one connection / event loop per FS process inswitchioand maybe it's not worth the effort?