Class: Thin::Connection
- Inherits:
-
Object
- Object
- Thin::Connection
- Defined in:
- lib/http_double/thin_logging.rb
Overview
This patch tries to ensure Thin is using the correct logger in cases where multiple doubles are running. This method is not foolproof.
Instance Method Summary collapse
Instance Method Details
#receive_data(data) ⇒ Object
28 29 30 31 32 |
# File 'lib/http_double/thin_logging.rb', line 28 def receive_data(data) logger = HttpDouble::Base.loggers[backend.port] Thin::Logging.trace_logger = logger if logger.respond_to? :level receive_data_original data end |
#receive_data_original ⇒ Object
26 |
# File 'lib/http_double/thin_logging.rb', line 26 alias_method :receive_data_original, :receive_data |