From b7c613d859564ad3ceca0335a638583aaf2a0873 Mon Sep 17 00:00:00 2001 From: Qining Date: Thu, 13 Dec 2018 13:35:11 -0500 Subject: [PATCH] Mute the validation layer output on the gapir side by default (#2460) Unless the log level is higher than DEBUG, gapir stdout will not print those messages anymore, so that the 'log' view in UI won't get polluted --- gapir/cc/context.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gapir/cc/context.cpp b/gapir/cc/context.cpp index c8caedc535..d819ea937a 100644 --- a/gapir/cc/context.cpp +++ b/gapir/cc/context.cpp @@ -157,17 +157,7 @@ void Context::onDebugMessage(uint32_t severity, uint8_t api_index, str_msg = std::string(msg, len); msg = str_msg.data(); } - switch (severity) { - case LOG_LEVEL_ERROR: - GAPID_ERROR("[%d]renderer: %s", label, msg); - break; - case LOG_LEVEL_WARNING: - GAPID_WARNING("[%d]renderer: %s", label, msg); - break; - default: - GAPID_DEBUG("[%d]renderer: %s", label, msg); - break; - } + GAPID_DEBUG("[%d]renderer: %s", label, msg); mSrv->sendNotification(mNumSentDebugMessages++, severity, api_index, label, str_msg, nullptr, 0); }