From 41eed8eeaf54861c28ff37800ad2e27341946330 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 17 Feb 2019 11:33:28 +0000 Subject: Use NSLOG rather than LOG/JS_LOG Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/Document.bnd | 4 ++-- content/handlers/javascript/duktape/Window.bnd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/handlers/javascript/duktape/Document.bnd b/content/handlers/javascript/duktape/Document.bnd index 5de724538..f94a4e43c 100644 --- a/content/handlers/javascript/duktape/Document.bnd +++ b/content/handlers/javascript/duktape/Document.bnd @@ -35,7 +35,7 @@ method Document::write() } duk_concat(ctx, duk_get_top(ctx)); text = duk_safe_to_lstring(ctx, 0, &text_len); - JS_LOG("Writing %*s", (int)text_len, text); + NSLOG(netsurf, DEBUG, "Writing %*s", (int)text_len, text); err = dom_node_get_user_data(priv->parent.node, corestring_dom___ns_key_html_content_data, @@ -70,7 +70,7 @@ method Document::writeln() duk_concat(ctx, duk_get_top(ctx)); text = duk_safe_to_lstring(ctx, 0, &text_len); - JS_LOG("Writeln %*s", (int)text_len, text); + NSLOG(netsurf, DEBUG, "Writeln %*s", (int)text_len, text); err = dom_node_get_user_data(priv->parent.node, corestring_dom___ns_key_html_content_data, &htmlc); diff --git a/content/handlers/javascript/duktape/Window.bnd b/content/handlers/javascript/duktape/Window.bnd index 98ba39df8..bdabf1179 100644 --- a/content/handlers/javascript/duktape/Window.bnd +++ b/content/handlers/javascript/duktape/Window.bnd @@ -54,7 +54,7 @@ prototype Window() getter Window::document() %{ - JS_LOG("priv=%p", priv); + NSLOG(netsurf, DEBUG, "priv=%p", priv); dom_document *doc = priv->htmlc->document; dukky_push_node(ctx, (struct dom_node *)doc); return 1; -- cgit v1.2.3