main: Don't warn for unset config option
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 9 Nov 2020 22:57:56 +0000 (14:57 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
Unset options shall not be printed if debug is not enabled.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/main.c

index 6b66eaf..666d797 100755 (executable)
@@ -336,7 +336,7 @@ static void parse_mode_config(GKeyFile *config, const char *group,
                int val = g_key_file_get_integer(config, group,
                                                params[i].val_name, &err);
                if (err) {
-                       warn("%s", err->message);
+                       DBG("%s", err->message);
                        g_clear_error(&err);
                } else {
                        info("%s=%d", params[i].val_name, val);