env/dpdk: suppress EAL's RTE_LOG_INFO messages

Bump the log level for EAL to RTE_LOG_NOTICE.

Reading from rte_log.h:
```
RTE_LOG_NOTICE   6U  /**< Normal but significant condition. */
RTE_LOG_INFO     7U  /**< Informational.                    */
RTE_LOG_DEBUG    8U  /**< Debug-level messages.             */
```

We're doing this primarily for the NVMe hotplug poller,
which calls spdk_pci_enumerate() and constantly bloats
the output with logs describing which device is currently
iterated over. We don't want to see those.

Change-Id: I1a90e514fdf467bc95da910f786f1818757cfdcf
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/441789
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Darek Stojaczyk 2019-01-23 22:12:49 +01:00 committed by Jim Harris
parent e6ae2d272b
commit ac5b26e4cb

View File

@ -415,5 +415,8 @@ spdk_env_init(const struct spdk_env_opts *opts)
spdk_env_unlink_shared_files(); spdk_env_unlink_shared_files();
} }
/* Print only the significant EAL messages */
rte_log_set_level(RTE_LOGTYPE_EAL, RTE_LOG_NOTICE);
return spdk_env_dpdk_post_init(); return spdk_env_dpdk_post_init();
} }