From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3 4/8] eal: change specific log levels at startup Date: Fri, 14 Apr 2017 16:32:57 +0100 Message-ID: References: <20170329155323.4760-1-olivier.matz@6wind.com> <20170404164040.24132-1-olivier.matz@6wind.com> <20170404164040.24132-5-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, david.marchand@6wind.com, bruce.richardson@intel.com, thomas.monjalon@6wind.com, keith.wiles@intel.com, stephen@networkplumber.org To: Olivier Matz Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id DF30B37B2 for ; Fri, 14 Apr 2017 17:33:00 +0200 (CEST) In-Reply-To: <20170404164040.24132-5-olivier.matz@6wind.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Olivier, On 4/4/2017 5:40 PM, Olivier Matz wrote: > Example of use: > ./app/test-pmd --log-level='pmd\.i40e.*,8' > > This enables debug logs for all dynamic logs whose type starts with > 'pmd.i40e'. > > Signed-off-by: Olivier Matz <...> > index f0ded185b..d98d56d2f 100644 > --- a/lib/librte_eal/linuxapp/eal/eal.c > +++ b/lib/librte_eal/linuxapp/eal/eal.c > @@ -776,10 +776,8 @@ rte_eal_init(int argc, char **argv) > > thread_id = pthread_self(); > > - eal_log_level_parse(argc, argv); > - > /* set log level as early as possible */ > - rte_set_log_level(internal_config.log_level); Removing this line prevents using RTE_LOG_LEVEL config option. When there is no command line argument provided, I think it makes sense to use config option. Currently config option is set to INFO level but app shows DEBUG level logs, this is confusing. > + eal_log_level_parse(argc, argv); > > if (rte_eal_cpu_init() < 0) { > rte_eal_init_alert("Cannot detect lcores."); >