@@ -171,9 +171,6 @@ const char builtin_config_magic[] = "==builtin==";
171171// #define SIGNAL_BLOCKING
172172#undef SIGNAL_BLOCKING
173173
174- /* debugging level, used by logging.h */
175- int global_debug_level = 0 ;
176-
177174/* disable inotify auto reload feature if desired */
178175static conky::simple_config_setting<bool > disable_auto_reload (
179176 " disable_auto_reload" , false , false );
@@ -1915,6 +1912,7 @@ void clean_up(void) {
19151912
19161913 conky::cleanup_config_settings (*state);
19171914 state.reset ();
1915+ conky::log::terminate_logging ();
19181916}
19191917
19201918void handle_terminate () {
@@ -2216,31 +2214,31 @@ void initialisation(int argc, char **argv) {
22162214 case ' u' :
22172215 state->pushnumber (strtod (optarg, &conv_end));
22182216 if (*conv_end != 0 ) {
2219- CRIT_ERR (" '%s' is an invalid update interval" , optarg);
2217+ USER_ERR (" '%s' is an invalid update interval" , optarg);
22202218 }
22212219 update_interval.lua_set (*state);
22222220 break ;
22232221
22242222 case ' i' :
22252223 state->pushinteger (strtol (optarg, &conv_end, 10 ));
22262224 if (*conv_end != 0 ) {
2227- CRIT_ERR (" '%s' is an invalid number of update times" , optarg);
2225+ USER_ERR (" '%s' is an invalid number of update times" , optarg);
22282226 }
22292227 total_run_times.lua_set (*state);
22302228 break ;
22312229#ifdef BUILD_X11
22322230 case ' x' :
22332231 state->pushinteger (strtol (optarg, &conv_end, 10 ));
22342232 if (*conv_end != 0 ) {
2235- CRIT_ERR (" '%s' is an invalid value for the X-position" , optarg);
2233+ USER_ERR (" '%s' is an invalid value for the X-position" , optarg);
22362234 }
22372235 gap_x.lua_set (*state);
22382236 break ;
22392237
22402238 case ' y' :
22412239 state->pushinteger (strtol (optarg, &conv_end, 10 ));
22422240 if (*conv_end != 0 ) {
2243- CRIT_ERR (" '%s' is a wrong value for the Y-position" , optarg);
2241+ USER_ERR (" '%s' is a wrong value for the Y-position" , optarg);
22442242 }
22452243 gap_y.lua_set (*state);
22462244 break ;
0 commit comments