summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/safe_browsing
diff options
context:
space:
mode:
authorbryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 21:03:39 +0000
committerbryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 21:03:39 +0000
commite562bdb710c585b5356c044c63202292bdebfd22 (patch)
treee989ed495340c13612a2315a36db5fef32c863fc /chrome/renderer/safe_browsing
parent4bf3522cf76f8b107ea0f1fe5c9de17fa54fe3c6 (diff)
downloadchromium_src-e562bdb710c585b5356c044c63202292bdebfd22.zip
chromium_src-e562bdb710c585b5356c044c63202292bdebfd22.tar.gz
chromium_src-e562bdb710c585b5356c044c63202292bdebfd22.tar.bz2
Switch some LOG(ERROR)s to DLOG(INFO) in PhishingDOMFeatureExtractor.
It turns out to be reasonably common not to have a host for some URLs, such as data: URLs, and the extra logging actually slows down feature extraction significantly. Review URL: http://codereview.chromium.org/3198003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/safe_browsing')
-rw-r--r--chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
index c8f4bd0..7dbf765 100644
--- a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
+++ b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
@@ -188,7 +188,7 @@ void PhishingDOMFeatureExtractor::HandleLink(
std::string domain;
bool is_external = IsExternalDomain(full_url, &domain);
if (domain.empty()) {
- LOG(ERROR) << "Could not extract domain from link: " << full_url;
+ DLOG(INFO) << "Could not extract domain from link: " << full_url;
return;
}
@@ -223,7 +223,7 @@ void PhishingDOMFeatureExtractor::HandleForm(
std::string domain;
bool is_external = IsExternalDomain(full_url, &domain);
if (domain.empty()) {
- LOG(ERROR) << "Could not extract domain from form action: " << full_url;
+ DLOG(INFO) << "Could not extract domain from form action: " << full_url;
return;
}
@@ -245,7 +245,7 @@ void PhishingDOMFeatureExtractor::HandleImage(
std::string domain;
bool is_external = IsExternalDomain(full_url, &domain);
if (domain.empty()) {
- LOG(ERROR) << "Could not extract domain from image src: " << full_url;
+ DLOG(INFO) << "Could not extract domain from image src: " << full_url;
return;
}