logging: add accessor for log level
This commit is contained in:
@@ -209,6 +209,12 @@ nm_logging_domains_to_string (void)
|
||||
return g_string_free (str, FALSE);
|
||||
}
|
||||
|
||||
gboolean
|
||||
nm_logging_level_enabled (guint32 level)
|
||||
{
|
||||
return !!(log_level & level);
|
||||
}
|
||||
|
||||
void _nm_log (const char *loc,
|
||||
const char *func,
|
||||
guint32 domain,
|
||||
|
@@ -90,6 +90,7 @@ void _nm_log (const char *loc, const char *func,
|
||||
|
||||
const char *nm_logging_level_to_string (void);
|
||||
char *nm_logging_domains_to_string (void);
|
||||
gboolean nm_logging_level_enabled (guint32 level);
|
||||
|
||||
/* Undefine the nm-utils.h logging stuff to ensure errors */
|
||||
#undef nm_print_backtrace
|
||||
|
Reference in New Issue
Block a user