Log js console messages as debug, not info

This commit is contained in:
Florian Bruhin 2014-06-02 22:18:41 +02:00
parent 2bf14ac980
commit da2d8e1048

View File

@ -119,7 +119,7 @@ class BrowserPage(QWebPage):
def javaScriptConsoleMessage(self, msg, line, source):
"""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):
"""Override javaScriptConfirm to use the statusbar."""