From ac5b26e4cb8fda257661c8707d98369271ec3170 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Wed, 23 Jan 2019 22:12:49 +0100 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/c/441789 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Karol Latecki Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: Paul Luse Reviewed-by: Jim Harris --- lib/env_dpdk/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/env_dpdk/init.c b/lib/env_dpdk/init.c index f62136197..cc2aa87a5 100644 --- a/lib/env_dpdk/init.c +++ b/lib/env_dpdk/init.c @@ -415,5 +415,8 @@ spdk_env_init(const struct spdk_env_opts *opts) 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(); }