thin icon indicating copy to clipboard operation
thin copied to clipboard

Correction to uninitialized constant Thin::Server::Logging

Open Ginkggo opened this issue 4 months ago • 8 comments

This should fix https://github.com/macournoyer/thin/issues/447

Ginkggo avatar Jul 30 '25 20:07 Ginkggo

Can you please review the test failures? Thanks!

ioquatix avatar Jul 30 '25 22:07 ioquatix

This looks okay to me, but I'll review it in more detail after you remove the white space changes.

ioquatix avatar Jul 31 '25 01:07 ioquatix

Okay, I reviewed the change. I'm not sure I understand how this fix is supposed to work.

I think you need to modify https://github.com/macournoyer/thin/blob/master/lib/thin/server.rb and add require_relative "logging".

ioquatix avatar Jul 31 '25 02:07 ioquatix

@ioquatix That was my first commit, I did require 'thin' because daemonizable was also being uninitialized I tested that change and it worked but I didn't understand why the tests were failing because of it. I added the rack version handling since that was what the tests were failing to find and added the logging in there as well to ensure reference.

tbh I could have left it in server.rb

Ginkggo avatar Jul 31 '25 02:07 Ginkggo

Hmm, maybe CI is broken, let me check.

ioquatix avatar Jul 31 '25 02:07 ioquatix

Any progress on this with either CI or this fix? We're having the same issue in our application

jaevans avatar Sep 09 '25 18:09 jaevans

I think you need to modify https://github.com/macournoyer/thin/blob/master/lib/thin/server.rb and add require_relative "logging".

CI appears fixed.

ioquatix avatar Sep 11 '25 02:09 ioquatix

Hi, any idea when these changes will be merged? got same issue in our app

IkanPakUs avatar Nov 05 '25 04:11 IkanPakUs