From da91c70f2a4b0e61c596bfcb26a50438c2568315 Mon Sep 17 00:00:00 2001 From: yuanbowang Date: Tue, 1 Dec 2020 21:48:27 +0800 Subject: [PATCH] UCS/LOG: if user set UCX_LOG_LEVEL=DEBUG, print unsupport warning --- src/ucs/debug/log.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ucs/debug/log.c b/src/ucs/debug/log.c index 7a91707ab31..f8b181d8c41 100644 --- a/src/ucs/debug/log.c +++ b/src/ucs/debug/log.c @@ -330,6 +330,9 @@ void ucs_log_init() ucs_open_output_stream(ucs_global_opts.log_file, UCS_LOG_LEVEL_FATAL, &ucs_log_file, &ucs_log_file_close, &next_token); } + if (ucs_global_opts.log_component.log_level > UCS_MAX_LOG_LEVEL) { + ucs_warn("UCX log level DEBUG is not supported, highest supported level is INFO"); + } } void ucs_log_cleanup()