From 9e1622a679031d2bb2205ba42e23269600bc9a3a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 25 Jan 2016 12:20:58 +0000 Subject: Wrap verbose JS logging in debug macro. --- javascript/duktape/dukky.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'javascript/duktape/dukky.c') diff --git a/javascript/duktape/dukky.c b/javascript/duktape/dukky.c index 437a3d48a..d583484bf 100644 --- a/javascript/duktape/dukky.c +++ b/javascript/duktape/dukky.c @@ -236,7 +236,7 @@ dukky_push_node_klass(duk_context *ctx, struct dom_node *node) duk_bool_t dukky_push_node(duk_context *ctx, struct dom_node *node) { - LOG("Pushing node %p", node); + JS_LOG("Pushing node %p", node); /* First check if we can find the node */ /* ... */ duk_get_global_string(ctx, NODE_MAGIC); @@ -251,7 +251,7 @@ dukky_push_node(duk_context *ctx, struct dom_node *node) /* ... node nodes */ duk_pop(ctx); /* ... node */ - LOG("Found it memoised"); + JS_LOG("Found it memoised"); return true; } /* ... nodes undefined */ -- cgit v1.2.3