mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
logging: remove assertion in nm_logging_enabled() from production builds
We really expect this assertion not to be violated. As we want for nm_logging_enabled() to become smaller and inline, remove the runtime assertion from regular builds. Live fast and dangerous.
This commit is contained in:
parent
553b04148a
commit
1a070f6a44
1 changed files with 1 additions and 2 deletions
|
|
@ -447,8 +447,7 @@ nm_logging_all_domains_to_string (void)
|
|||
gboolean
|
||||
nm_logging_enabled (NMLogLevel level, NMLogDomain domain)
|
||||
{
|
||||
if ((guint) level >= G_N_ELEMENTS (global.logging))
|
||||
g_return_val_if_reached (FALSE);
|
||||
nm_assert (((guint) level) < G_N_ELEMENTS (global.logging));
|
||||
|
||||
return !!(global.logging[level] & domain);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue