8 static void vlock_quiet_log_handler(const gchar
*log_domain
__attribute__((unused
)),
9 GLogLevelFlags log_level
__attribute__((unused
)),
10 const gchar
*message
__attribute__((unused
)),
11 gpointer user_data
__attribute__((unused
)))
16 void vlock_initialize_logging(void)
18 const gchar
*vlock_debug
= g_getenv("VLOCK_DEBUG");
20 if (vlock_debug
== NULL
|| *vlock_debug
== '\0')
21 g_log_set_handler(NULL
, G_LOG_LEVEL_DEBUG
| G_LOG_LEVEL_INFO
, vlock_quiet_log_handler
, NULL
);