Commit e46111ec authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Make Skia crash useful.

SkASSERT() will print message with fatal = false, we assign INFO level for
it, so message will not reach the conosle. Fix the issue by increase the
level to ERROR.

Bug: None
Change-Id: I7bc8608b7130c3936152583bea9b030b75350026
Reviewed-on: https://chromium-review.googlesource.com/c/1348630Reviewed-by: default avatarBrian Salomon <bsalomon@google.com>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610892}
parent bc49bd88
...@@ -12,7 +12,11 @@ ...@@ -12,7 +12,11 @@
void SkDebugf_FileLine(const char* file, int line, bool fatal, void SkDebugf_FileLine(const char* file, int line, bool fatal,
const char* format, ...) { const char* format, ...) {
#if DCHECK_IS_ON()
int severity = fatal ? logging::LOG_FATAL : logging::LOG_ERROR;
#else
int severity = fatal ? logging::LOG_FATAL : logging::LOG_INFO; int severity = fatal ? logging::LOG_FATAL : logging::LOG_INFO;
#endif
if (severity < logging::GetMinLogLevel()) if (severity < logging::GetMinLogLevel())
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment