Class: Puppeteer::Connection::ResponseDebugPrinter
- Inherits:
-
Object
- Object
- Puppeteer::Connection::ResponseDebugPrinter
show all
- Includes:
- DebugPrint
- Defined in:
- lib/puppeteer/connection.rb
Constant Summary
collapse
- NON_DEBUG_PRINT_METHODS =
[
'Network.dataReceived',
'Network.loadingFinished',
'Network.requestWillBeSent',
'Network.requestWillBeSentExtraInfo',
'Network.responseReceived',
'Network.responseReceivedExtraInfo',
'Page.lifecycleEvent',
]
Instance Method Summary
collapse
Methods included from DebugPrint
#debug_print, #debug_puts
Instance Method Details
#handle_message(message) ⇒ Object
122
123
124
125
126
127
128
129
130
131
|
# File 'lib/puppeteer/connection.rb', line 122
def handle_message(message)
if skip_debug_print?(message['method'])
debug_print '.'
@prev_log_skipped = true
else
debug_print "\n" if @prev_log_skipped
@prev_log_skipped = nil
debug_puts "RECV << #{decorate(message)}"
end
end
|