From c74d7c570eccadf7be968a4767ea67c14ca08009 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Wed, 20 May 2009 20:30:13 +0000 Subject: Don't die on glib/gtk/gdk errors in release mode. Review URL: http://codereview.chromium.org/113654 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16523 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/chrome_dll_main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome') diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 2bb7123..223b303 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -159,7 +159,6 @@ static void GLibLogHandler(const gchar* log_domain, if (!message) message = ""; - if (strstr(message, "Loading IM context type") || strstr(message, "wrong ELF class: ELFCLASS64")) { // http://crbug.com/9643 @@ -172,7 +171,11 @@ static void GLibLogHandler(const gchar* log_domain, // http://crbug.com/11133 LOG(ERROR) << "Bug 11133"; } else { +#ifdef NDEBUG + LOG(ERROR) << log_domain << ": " << message; +#else LOG(FATAL) << log_domain << ": " << message; +#endif } } -- cgit v1.1