[geary/wip/728002-webkit2] Make web process extension console logging a bit less verbose.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/728002-webkit2] Make web process extension console logging a bit less verbose.
- Date: Fri, 27 Jan 2017 06:52:47 +0000 (UTC)
commit 0e747046aa122890618f25fecfc7dbefcecf558e
Author: Michael James Gratton <mike vee net>
Date: Thu Jan 26 13:31:55 2017 +1100
Make web process extension console logging a bit less verbose.
src/client/web-process/web-process-extension.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/client/web-process/web-process-extension.vala
b/src/client/web-process/web-process-extension.vala
index 2fc4067..2eda53c 100644
--- a/src/client/web-process/web-process-extension.vala
+++ b/src/client/web-process/web-process-extension.vala
@@ -52,10 +52,11 @@ public class GearyWebExtension : Object {
// XXX Conditionally enable while we still depend on WK2 <2.12
private void on_console_message(WebKit.WebPage page,
WebKit.ConsoleMessage message) {
+ string source = message.get_source_id();
debug("Console: [%s] %s %s:%u: %s",
- message.get_level().to_string(),
- message.get_source().to_string(),
- message.get_source_id(),
+ message.get_level().to_string().substring("WEBKIT_CONSOLE_MESSAGE_LEVEL_".length),
+ message.get_source().to_string().substring("WEBKIT_CONSOLE_MESSAGE_SOURCE_".length),
+ Geary.String.is_empty(source) ? "unknown" : source,
message.get_line(),
message.get_text()
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]