On 7/26/2019 9:17 AM, John Daley (johndale) wrote: > Actually, after talking to a couple internal folks, we'd like to get the > patch in if possible- many of our customer issues are due to the wrong number > of queues, etc, which are reported in the default logs. To ask them to add > --log-level=enic,info would be a pain, esp. for apps like OVS, fd.io.
As I said to Hyong, I believe it is not good approach to have logs to debug customer issues enabled by default. But I see you want to keep the your logging same, instead of replacing all 'dev_info' with 'dev_notice', what about setting default log level for driver to 'RTE_LOG_INFO', this is easier change with same affect? And when more fine grained update done on which logs to really set to 'dev_notice', the default log level can be updated back to 'RTE_LOG_NOTICE' > -john > >> -----Original Message----- >> From: John Daley (johndale) >> Sent: Thursday, July 25, 2019 1:26 PM >> To: Ferruh Yigit <ferruh.yi...@intel.com> >> Cc: dev@dpdk.org; Hyong Youb Kim (hyonkim) <hyon...@cisco.com> >> Subject: RE: [PATCH] net/enic: retain previous message logging >> >> Ok, lets NAK this patch. See comment inline. >> Thanks, >> John >> >>> -----Original Message----- >>> From: Ferruh Yigit <ferruh.yi...@intel.com> >>> Sent: Thursday, July 25, 2019 3:07 AM >>> To: John Daley (johndale) <johnd...@cisco.com> >>> Cc: dev@dpdk.org >>> Subject: Re: [PATCH] net/enic: retain previous message logging >>> >>> On 7/25/2019 3:46 AM, John Daley wrote: >>>> Prior to fix, RTE_LOGTYPE_INFO messages would display in testpmd by >>>> default. After the fix, using dynamic logging, only NOTICE level and >>>> higher were displayed by default and INFO level were not. Change the >>>> messages to NOTICE level so they continue to display. >>>> >>>> DTS uses testpmd and parses messages and some tests failed because >>>> messages were no longer displayed. Other apps may also depend on the >>>> messages. >>> >>> If you need messages for the test framework, why not just increase the >>> log level for enic PMD via application parameter [1], or as command to >>> testpmd[2]? >>> Since it is dynamic debug now, you don't need to change the default, >>> can change the level on demand. >> >> I have no problem modifying our test scripts. The bigger concern was about >> any other scripts out there that might break because the default enic PMD >> messages changed. I suppose chances are slim and any such scripts can >> easily be modified to set the log level to info. >> >>> >>> [1] >>> starting testpmd with following option should do it: >>> --log-level=pmd.net.enic.*:info >>> >>> testpmd --log-level=pmd.net.enic.*:info -- -i >>> >>> >>> [2] >>> after testpmd started, can change the debug level: >>> testpmd> set log pmd.net.enic 7 >>> >>> >>> [3] bonus, see current log levels >>> testpmd> dump_log_types >> >> Nice! I didn't know about this. >> >>> >>> >>> >>>> >>>> Fixes: bbd8ecc05434 ("net/enic: remove PMD log type references") >>>> >>>> Signed-off-by: John Daley <johnd...@cisco.com> >>> >>> <...> >