Import twisted.logger.rsyslog.RemoteSyslogObserver#12465
Import twisted.logger.rsyslog.RemoteSyslogObserver#12465uedvt359 wants to merge 4 commits intotwisted:trunkfrom
Conversation
CodSpeed Performance ReportMerging #12465 will improve performances by 2.26%Comparing Summary
Benchmarks breakdown
|
|
Review comments from @glyph addressed in push c5caa41:
addressed in push 6881912:
This still leaves:
I would prefer to use Twisted's nonblocking implementation, but I'm not sure how exactly, so I chose to simply use a socket for now. I will look into it again. rSyslog is allowed over TCP as well, so a solution should work with both transports. |
0c7e4c6 to
da5b27f
Compare
0852967 to
7bfbc26
Compare
44ed650 to
df3527a
Compare
for more information, see https://pre-commit.ci
|
I'm setting this branch to reviewable, because I need some help with the tests, please. I don't understand how I can fake a reactor for my use case. The CI also wants me to add MyPy type hints - something I am failing at (and could use some hints for) as well :| pinging @glyph, since you already looked at the original issue. |
glyph
left a comment
There was a problem hiding this comment.
This wasn't getting looked at because I tend to exclude things with failing tests when I look at the review queue. Let's maybe find some time to pair program on this, if you have any, or if not, I'll have to look at this myself later; let me know.
No worries about the delay.
I'd love to! |
Scope and purpose
Fixes #12464
The twisted.python.syslog.SyslogObserver can only forwards logs to the local syslog (which is fine per se). RemoteSyslogObserver directly sends Syslog messages over the network, without going through local syslog.