diff --git a/inc/common/macro.h b/inc/common/macro.h index ef58f202a25ebf5460fc2b9a5135c2a3c3a2d354..c3175cd5a2476939b30d84436a5728675346c6c4 100644 --- a/inc/common/macro.h +++ b/inc/common/macro.h @@ -22,15 +22,15 @@ #define MIN(a, b) ((a) > (b) ? (b) : (a)) #endif /* MIN */ -#define RETURN_IF(cond, msg, ret) \ - if (cond) { \ - LOG_ERROR("", "%s", msg); \ - return ret; \ +#define RETURN_IF(cond, msg, ret) \ + if (cond) { \ + LOG_DEBUG("DEBUG", "%s", msg); \ + return ret; \ } -#define GOTO_IF(cond, msg, label) \ - if (cond) { \ - LOG_ERROR("", "%s", msg); \ - goto label; \ +#define GOTO_IF(cond, msg, label) \ + if (cond) { \ + LOG_DEBUG("DEBUG", "%s", msg); \ + goto label; \ } #define GOTO_UNLESS(cond, msg, label) GOTO_IF(!(cond), msg, label) diff --git a/src/module/repo.c b/src/module/repo.c index 23df64ffce2d1ecd994e4417afc96de9502e33f3..7e9f6ceeab77907ac54fc84289fa7afda7a0c121 100644 --- a/src/module/repo.c +++ b/src/module/repo.c @@ -389,8 +389,8 @@ __handle_got_json(volatile sqlite3 *db, struct lkt_repo *repo, ++ignored_count; database_update_touch(db, kara.id); database_update_set_available(db, kara.id); - LOG_INFO("REPO", "Ignore kara '%ld' with path '%s'", - kara.id, kara.filename); + LOG_DEBUG("REPO", "Ignore kara '%ld' with path '%s'", + kara.id, kara.filename); continue; } do_it: