Log js console messages as debug, not info
This commit is contained in:
parent
2bf14ac980
commit
da2d8e1048
@ -119,7 +119,7 @@ class BrowserPage(QWebPage):
|
|||||||
|
|
||||||
def javaScriptConsoleMessage(self, msg, line, source):
|
def javaScriptConsoleMessage(self, msg, line, source):
|
||||||
"""Override javaScriptConsoleMessage to use debug log."""
|
"""Override javaScriptConsoleMessage to use debug log."""
|
||||||
log.js.info("[{}:{}] {}".format(source, line, msg))
|
log.js.debug("[{}:{}] {}".format(source, line, msg))
|
||||||
|
|
||||||
def javaScriptPrompt(self, _frame, msg, default):
|
def javaScriptPrompt(self, _frame, msg, default):
|
||||||
"""Override javaScriptConfirm to use the statusbar."""
|
"""Override javaScriptConfirm to use the statusbar."""
|
||||||
|
Loading…
Reference in New Issue
Block a user