summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 10:09:29 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 10:12:45 +0100
commit9742a8317f66cc2802b3d92456ec0516a6de8c79 (patch)
tree5949a227bc2af861c6df0198c88e214100c42e43 /utils
parent6683818c182d396d17ea8bde035a91da20da9e9c (diff)
downloadnetsurf-9742a8317f66cc2802b3d92456ec0516a6de8c79.tar.gz
netsurf-9742a8317f66cc2802b3d92456ec0516a6de8c79.tar.bz2
Dukky: Add and utilise a jserrors category
Normal, and verbose logging will now also log all JS errors in order that we stand a chance of debugging things more easily when testing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/log.c1
-rw-r--r--utils/log.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/utils/log.c b/utils/log.c
index 2168e646b..68b188e0f 100644
--- a/utils/log.c
+++ b/utils/log.c
@@ -100,6 +100,7 @@ NSLOG_DEFINE_CATEGORY(schedule, "Scheduler");
NSLOG_DEFINE_CATEGORY(fbtk, "Framebuffer toolkit");
NSLOG_DEFINE_CATEGORY(layout, "Layout");
NSLOG_DEFINE_CATEGORY(dukky, "Duktape JavaScript Binding");
+NSLOG_DEFINE_CATEGORY(jserrors, "JavaScript error messages");
static void
netsurf_render_log(void *_ctx,
diff --git a/utils/log.h b/utils/log.h
index 24832c0b4..02a886c01 100644
--- a/utils/log.h
+++ b/utils/log.h
@@ -85,6 +85,7 @@ NSLOG_DECLARE_CATEGORY(schedule);
NSLOG_DECLARE_CATEGORY(fbtk);
NSLOG_DECLARE_CATEGORY(layout);
NSLOG_DECLARE_CATEGORY(dukky);
+NSLOG_DECLARE_CATEGORY(jserrors);
#else /* WITH_NSLOG */