-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR for issue #674 #675
base: trunk
Are you sure you want to change the base?
PR for issue #674 #675
Conversation
for more information, see https://pre-commit.ci
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.
Hi, thanks for contributing to Klein!
I don't quite understand the desired effect of this change though, and the documentation seems inaccurate and confusing to me; it doesn't really explain why a user would or wouldn't want to pass this parameter.
This PR reads like something in your environment made you want the default behavior to be different, but I don't know what that thing was. Can you say more about why you wanted this in the first place?
Example -- Disabling signal handler installation | ||
================================================ | ||
|
||
You have the possibility to print raised errors directly in the file descriptor specified in the ``Klein.run()`` ``logFile`` parameter, it can be useful for troubleshooting or logging fins. |
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.
There are reasons to want to have this parameter exposed, but … this is not one of them. Twisted logs raised errors automatically already, so this documentation just seems inaccurate? You also don't actually use the logFile
parameter here, despite describing it. So this seems like an odd corner of the documentation.
It might be better to document how to call reactor.run
or integrate Klein with twisted.internet.task.react
directly, rather than copying every possible parameter into the run
convenience function.
Hi, thanks for the feedback. The original idea was to call It is apparently a lack of understanding of the Twisted documentation: After some experimentations i found a workaround on my side by combining You mentionned that Klein could be integrated with the Twisted module Citing its description :
How do you think it can be done ? It may be unrelated to this PR. |
That's definitely the right way to handle this :) |
|
installSignalHandlers
parameter implementation on the reactor.run() method