summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 17:44:28 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 17:44:28 +0000
commit9fa49779511fbbb577d552e845d9efa0de2046e9 (patch)
treebe3d7f822a558fb436bd84652384fcb30d0d2047 /chrome
parent137d33a32aceed782cd13e800eccc087f2186c96 (diff)
downloadchromium_src-9fa49779511fbbb577d552e845d9efa0de2046e9.zip
chromium_src-9fa49779511fbbb577d552e845d9efa0de2046e9.tar.gz
chromium_src-9fa49779511fbbb577d552e845d9efa0de2046e9.tar.bz2
linux: cut down on logging spam
Review URL: http://codereview.chromium.org/149546 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/chrome_dll_main.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index 6748069..74ba339 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -169,11 +169,17 @@ static void GLibLogHandler(const gchar* log_domain,
strstr(message, "wrong ELF class: ELFCLASS64")) {
// http://crbug.com/9643
// Until we have a real 64-bit build or all of these 32-bit package issues
- // are sorted out, don't fatal on ELF 32/64-bit mismatch warnings.
- LOG(ERROR) << "Bug 9643: " << log_domain << ": " << message;
+ // are sorted out, don't fatal on ELF 32/64-bit mismatch warnings and don't
+ // spam the user with more than one of them.
+ static bool alerted = false;
+ if (!alerted) {
+ LOG(ERROR) << "Bug 9643: " << log_domain << ": " << message;
+ alerted = true;
+ }
} else if (strstr(message, "gtk_widget_size_allocate(): attempt to "
"allocate widget with width") &&
!GTK_CHECK_VERSION(2, 16, 1)) {
+ // This warning only occurs in obsolete versions of GTK and is harmless.
// http://crbug.com/11133
} else if (strstr(message, "Theme file for default has no") ||
strstr(message, "Theme directory")) {