From a2caf1be0b408422f15e99bd9225c3ddb47f035d Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Thu, 14 May 2020 15:10:43 +0200
Subject: [PATCH] Log corrections

---
 inc/common/macro.h | 16 ++++++++--------
 src/module/repo.c  |  4 ++--
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/inc/common/macro.h b/inc/common/macro.h
index ef58f202..c3175cd5 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 23df64ff..7e9f6cee 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:
-- 
GitLab