mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Quieten dukky a little more in default log levels
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
52ef77ceef
commit
d77ed689e6
@ -804,17 +804,17 @@ js_exec(jscontext *ctx, const uint8_t *txt, size_t txtlen, const char *name)
|
||||
DUK_COMPILE_EVAL,
|
||||
(const char *)txt,
|
||||
txtlen) != 0) {
|
||||
NSLOG(dukky, INFO, "Failed to compile JavaScript input");
|
||||
NSLOG(dukky, DEBUG, "Failed to compile JavaScript input");
|
||||
goto handle_error;
|
||||
}
|
||||
|
||||
if (duk_pcall(CTX, 0/*nargs*/) == DUK_EXEC_ERROR) {
|
||||
NSLOG(dukky, INFO, "Failed to execute JavaScript");
|
||||
NSLOG(dukky, DEBUG, "Failed to execute JavaScript");
|
||||
goto handle_error;
|
||||
}
|
||||
|
||||
if (duk_get_top(CTX) == 0) duk_push_boolean(CTX, false);
|
||||
NSLOG(dukky, INFO, "Returning %s",
|
||||
NSLOG(dukky, DEEPDEBUG, "Returning %s",
|
||||
duk_get_boolean(CTX, 0) ? "true" : "false");
|
||||
return duk_get_boolean(CTX, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user