From 3abcbcb00b0114c2c344f0b292ebc98003476071 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Sun, 20 Oct 2024 20:45:50 -0400 Subject: [PATCH] v4.0.0-rc4 - add config parsing --- libglacier.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libglacier.c b/libglacier.c index 56f9867..62072c2 100644 --- a/libglacier.c +++ b/libglacier.c @@ -200,7 +200,10 @@ init_config() return(EXIT_FAILURE); } - infolog("Initialized libconfig"); + if (LG_VERBOSE == 1) { + infolog("Initialized libconfig"); + } + return 0; } @@ -217,7 +220,11 @@ int die_config() { config_destroy(&cfg); - infolog("Destroyed libconfig"); + + if (LG_VERBOSE == 1) { + infolog("Destroyed libconfig"); + } + return(EXIT_SUCCESS); }