summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-23 09:19:51 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-23 09:19:51 +0000
commitbfd185ac49ee40eb9ef304e03581b1e328b15336 (patch)
tree5ffed04971c4fe764740ecbdc713311d5f77ac81
parent614ca752f39c5a244b5b804161ece5518c422622 (diff)
downloadnetsurf-bfd185ac49ee40eb9ef304e03581b1e328b15336.tar.gz
netsurf-bfd185ac49ee40eb9ef304e03581b1e328b15336.tar.bz2
dukky: Guard pointless work for deep debug
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--content/handlers/javascript/duktape/dukky.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/javascript/duktape/dukky.c b/content/handlers/javascript/duktape/dukky.c
index 4d21573b0..dcbff6854 100644
--- a/content/handlers/javascript/duktape/dukky.c
+++ b/content/handlers/javascript/duktape/dukky.c
@@ -179,7 +179,7 @@ dukky_push_node_stacked(duk_context *ctx)
/* ... node nodeptr klass nodes */
duk_pop_3(ctx);
/* ... node */
- {
+ if (NSLOG_COMPILED_MIN_LEVEL <= NSLOG_LEVEL_DEEPDEBUG) {
duk_dup(ctx, -1);
const char * what = duk_safe_to_string(ctx, -1);
NSLOG(dukky, DEEPDEBUG, "Created: %s", what);
@@ -479,7 +479,7 @@ dukky_push_node(duk_context *ctx, struct dom_node *node)
/* ... node nodes */
duk_pop(ctx);
/* ... node */
- {
+ if (NSLOG_COMPILED_MIN_LEVEL <= NSLOG_LEVEL_DEEPDEBUG) {
duk_dup(ctx, -1);
const char * what = duk_safe_to_string(ctx, -1);
NSLOG(dukky, DEEPDEBUG, "Found it memoised: %s", what);