From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Bhagavatula Subject: Re: [PATCH 2/2] eal: fix dynamic logs failing to print Date: Fri, 17 Nov 2017 14:17:23 +0530 Message-ID: <20171117084722.by7sdxdoimkwdqpg@Pavan-LT> References: <20171116103144.4197-1-pbhagavatula@caviumnetworks.com> <20171116103144.4197-2-pbhagavatula@caviumnetworks.com> <81bb5aae-527d-5b1a-5609-985256682d39@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Ferruh Yigit , olivier.matz@6wind.com, thomas@monjalon.net Return-path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0041.outbound.protection.outlook.com [104.47.41.41]) by dpdk.org (Postfix) with ESMTP id AEBDD1B277 for ; Fri, 17 Nov 2017 09:47:43 +0100 (CET) Content-Disposition: inline In-Reply-To: <81bb5aae-527d-5b1a-5609-985256682d39@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Nov 16, 2017 at 11:48:14AM -0800, Ferruh Yigit wrote: > On 11/16/2017 2:31 AM, Pavan Nikhilesh wrote: > > Dynamic logs fail to print if the global log level is less than dynamic > > loglevel. Example if the global log level is set to INFO and dynamic log > > level for a specific module is set to DEBUG then the log fails to print. > > What is the purpose of the global log level value? > As per my understanding, If we want to filter out debug logs from all other modules except a specific module using --log-level="," the logs would fail to print if the global log level is lower than the specified level. If during EAL init we want to filter out all the logs except a certain pmd's log we can specify --log-level="pmd\..*," without modifying the global log level. Also, this wouldnt break the previous functionality of global log level. > > Check modules log level before checking the global log level. > > > > Fixes: c1b5fa94a46f ("eal: support dynamic log types") > > > > Signed-off-by: Pavan Nikhilesh > > <...> >