class Puma::ErrorLogger
def debug(options={})
and before all remaining info.
- +text+ (default nil) custom string to print in title
- +req+ the http request
- +error+ is an exception object
+options+ hash with additional options:
environment variable PUMA_DEBUG is defined.
Print occurred error details only if
def debug(options={}) return unless @debug error = options[:error] req = options[:req] string_block = [] string_block << title(options) string_block << request_dump(req) if request_parsed?(req) string_block << error.backtrace if error internal_write string_block.join("\n") end