]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile_utils: use lxc_log_trace() 3645/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 1 Feb 2021 21:54:47 +0000 (22:54 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 1 Feb 2021 21:54:47 +0000 (22:54 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile_utils.c

index 7e2c7a57a9a491e989e59a29468ce9d554f573ca..b316de5f95ddfcbc61a6a20cd636674b9f2c4c57 100644 (file)
@@ -225,8 +225,7 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
        struct lxc_netdev *netdev;
        struct lxc_list *it = (struct lxc_list *)&conf->network;;
 
-       if ((conf->loglevel != LXC_LOG_LEVEL_TRACE) &&
-           (lxc_log_get_level() != LXC_LOG_LEVEL_TRACE))
+       if (!lxc_log_trace())
                return;
 
        if (lxc_list_empty(it)) {