diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 07:47:34 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 07:47:34 +0000 |
commit | f48465c4f2346c961bf08140e90a7b4be978f573 (patch) | |
tree | 7ebbc13ba0a27176ed139177c92cab6842030ab7 /base/logging.cc | |
parent | 8c3d836472137bc907e3346bbccd97ff29b547bb (diff) | |
download | chromium_src-f48465c4f2346c961bf08140e90a7b4be978f573.zip chromium_src-f48465c4f2346c961bf08140e90a7b4be978f573.tar.gz chromium_src-f48465c4f2346c961bf08140e90a7b4be978f573.tar.bz2 |
Removed support for log prefix filters.
No one is using this, and this is obsoleted by --vmodule.
BUG=56965
TEST=None
Review URL: http://codereview.chromium.org/3596003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.cc')
-rw-r--r-- | base/logging.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/base/logging.cc b/base/logging.cc index a94d5f35..ef1a746 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -73,9 +73,6 @@ LoggingDestination logging_destination = LOG_ONLY_TO_FILE; LoggingDestination logging_destination = LOG_ONLY_TO_SYSTEM_DEBUG_LOG; #endif -const int kMaxFilteredLogLevel = LOG_WARNING; -std::string* log_filter_prefix; - // For LOG_ERROR and above, always print to stderr. const int kAlwaysPrintErrorLevel = LOG_ERROR; @@ -388,16 +385,6 @@ int GetVlogLevelHelper(const char* file, size_t N) { VlogInfo::kDefaultVlogLevel; } -void SetLogFilterPrefix(const char* filter) { - if (log_filter_prefix) { - delete log_filter_prefix; - log_filter_prefix = NULL; - } - - if (filter) - log_filter_prefix = new std::string(filter); -} - void SetLogItems(bool enable_process_id, bool enable_thread_id, bool enable_timestamp, bool enable_tickcount) { log_process_id = enable_process_id; @@ -580,12 +567,6 @@ LogMessage::~LogMessage() { if (log_message_handler && log_message_handler(severity_, str_newline)) return; - if (log_filter_prefix && severity_ <= kMaxFilteredLogLevel && - str_newline.compare(message_start_, log_filter_prefix->size(), - log_filter_prefix->data()) != 0) { - return; - } - if (logging_destination == LOG_ONLY_TO_SYSTEM_DEBUG_LOG || logging_destination == LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG) { #if defined(OS_WIN) |