mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 22:50:08 +01:00
logging: add accessor for log level
This commit is contained in:
parent
39f7535e04
commit
df35a08828
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue