Skip to content

Commit

Permalink
Mute the validation layer output on the gapir side by default (#2460)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Qining authored Dec 13, 2018
1 parent 958c48b commit b7c613d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions gapir/cc/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b7c613d

Please sign in to comment.