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
158
159
160
161
162
163
164
165
166
167
|
# File 'lib/puppeteer/connection.rb', line 158
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
|