diff --git a/inc/lektor/config.def b/inc/lektor/config.def index 5756920f47c46a4bd5a2e695a6230a465cec15cd..597a25817467e2d437162f2e9c4bd294187ad513 100644 --- a/inc/lektor/config.def +++ b/inc/lektor/config.def @@ -1,4 +1,4 @@ -value_opt("log", "WARN") /* Can be DEBUG, INFO, WARN, ERROR */ +value_opt("log", "INFO") /* Can be DEBUG, INFO, WARN, ERROR */ section("externals") value("mkvpropedit", "/usr/bin/mkvpropedit") diff --git a/src/base/json.c b/src/base/json.c index 1721faa37acdd1ca57b1ba9a4ede0a27fef23fa5..037bc3193764098bafef979b953408935dfdfd4b 100644 --- a/src/base/json.c +++ b/src/base/json.c @@ -118,10 +118,8 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use /* End of a block */ else if ((len = strspn(str, __JSON_END))) { - if (level == asked_level) { - LOG_DEBUG("JSON", "Completion call for json object"); + if (level == asked_level) call(NULL, NULL, 1, user); - } str += len; level -= len; } diff --git a/src/module/module_repo.c b/src/module/module_repo.c index e3e254bfd224a0f34290e12aba2dc990c532937c..322261686d66e45899570f12b5408a58cd7bb764 100644 --- a/src/module/module_repo.c +++ b/src/module/module_repo.c @@ -519,7 +519,7 @@ end_no_lock: static void __handle_fav_list_internal(const char UNUSED *key, const char *val, int UNUSED comp, void *user) { - if (val) + if (val == NULL) return; struct __uri *uri = (struct __uri *) user; @@ -567,7 +567,7 @@ __handle_fav_list(struct module_repo_internal *repo, char *fav, size_t fav_size) }, }; - json_parse(json, 1, __handle_fav_list_internal, (void *) &uri); + json_parse(json, 2, __handle_fav_list_internal, (void *) &uri); LOG_INFO("REPO", "Finished importing fav list '%s' as '%s'", fav_origin, fav); free(json); }