-
Notifications
You must be signed in to change notification settings - Fork 101
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
Never close $stdout #214
Never close $stdout #214
Conversation
👍 |
There's not a great way to handle automatically closing old file descriptors, so I'm just going to leave it out for now.
@localshred, I just removed the "close old logger" code all together. There's not a straightforward way to handle this, so we'll leave it up to the user to close old loggers if they're changing them using My previous attempt was checking the new loggers target, rather than the old one, so it would still happily close |
As far as I can tell, the |
I wouldn't ever close |
@localshred, agreed. The issue I'm running into is that I can't get to the old logger's target to make sure it's not |
Just ran into this, couldn't run rake db:migrate because puts would fail. Glad you guys are already on it. 👍 |
@abrandoned sorry, I thought it was your PR that introduced the bug, generating new meme... stand by |
This image makes me infinitely happy. I think we have a new meme on our hands. 👍 💯 🏆 🎆 |
Hahahah |
Looks like there is still an issue with this set of changes: NameError: uninitialized constant Logger
const_missing at /srv/amigo/shared/bundle/jruby/1.9/gems/protobuf-3.3.1/lib/protobuf/cli.rb:26
CLI at /srv/amigo/shared/bundle/jruby/1.9/gems/protobuf-3.3.1/lib/protobuf/cli.rb:26
Protobuf at /srv/amigo/shared/bundle/jruby/1.9/gems/protobuf-3.3.1/lib/protobuf/cli.rb:8
(root) at /srv/amigo/shared/bundle/jruby/1.9/gems/protobuf-3.3.1/lib/protobuf/cli.rb:7
require at /srv/amigo/shared/bundle/jruby/1.9/gems/protobuf-3.3.1/bin/rpc_server:1
(root) at /srv/amigo/shared/bundle/jruby/1.9/gems/protobuf-3.3.1/bin/rpc_server:1
load at /srv/amigo/shared/bundle/jruby/1.9/bin/rpc_server:23
(root) at /srv/amigo/shared/bundle/jruby/1.9/bin/rpc_server:23 I think you need to |
Fail. |
Is that the only issue, @hqmq? If so, we can patch this quickly. Otherwise, we should probably take a quick pass through and double check things. |
@liveh2o that was as far as I got trying to deploy with it, I rolled back to 3.2.1 for now in amigo. I think we should probably take a close look before releasing another patch version (ie. actually try running the code on a real server) |
This change was causing issues in practice.
RFC @abrandoned