-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove unused code from synapse.logging.utils #7897
Conversation
…ity. Signed-off-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Thanks! I was wondering why this wasn't breaking everything though as lots of people run Synapse on Python 3.8. From what I can tell, it looks like As such, it may be a better idea to modify this PR to remove this/these methods instead :) |
yes, only log_function seems to be used. Shall I just remove time_function alone? I am not sure if these are documented as part of the API to be used by someone.
|
I don't believe these are meant to be public (although |
Thanks @clokep I removed the mentioned functions and added a misc note. |
@tirkarthi Looks good, but linting is failing! You can test this locally by running |
Removed unused imports. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for finding this.
* commit 'de119063f': (31 commits) Convert room list handler to async/await. (#7912) Element CSS and logo in email templates (#7919) Lint the contrib/ directory in CI and linting scripts, add synctl to linting script (#7914) Remove unused code from synapse.logging.utils. (#7897) Fix a typo in the sample config. (#7890) Fix deprecation warning: import ABC from collections.abc (#7892) Change sample config's postgres user to synapse_user (#7889) Fix deprecation warning due to invalid escape sequences (#7895) Remove Ubuntu Eoan that is now EOL (#7888) Fix the trace function for async functions. (#7872) Add help for creating a user via docker (#7885) Switch to Debian:Slim from Alpine for the docker image (#7839) Stop using 'device_max_stream_id' (#7882) Fix TypeError in synapse.notifier (#7880) Add a default limit (of 100) to get/sync operations. (#7858) Change "unknown room ver" logging to warning. (#7881) Convert device handler to async/await (#7871) Convert synapse.app to async/await. (#7868) Convert _base, profile, and _receipts handlers to async/await (#7860) Add admin endpoint to get members in a room. (#7842) ...
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.Fixes #7896