diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 19:28:07 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 19:28:07 +0000 |
commit | 909116fdb8f7eaaf225bdf3314fdf4e46d42f115 (patch) | |
tree | 48e13a067667ee3ed6e3103ff0cc6d1355043dba /base/debug | |
parent | ead68fa16bb57be280d19b30e6b592fd8f6192a0 (diff) | |
download | chromium_src-909116fdb8f7eaaf225bdf3314fdf4e46d42f115.zip chromium_src-909116fdb8f7eaaf225bdf3314fdf4e46d42f115.tar.gz chromium_src-909116fdb8f7eaaf225bdf3314fdf4e46d42f115.tar.bz2 |
Fixed logging so that vmodule works correctly again
Removed extraneous check in LogMessage destructor; all the checks are
now done before LogMessage is created.
Removed useless warning if --vmodule is used but --v is not.
BUG=None
TEST=Manual
Review URL: http://codereview.chromium.org/5329001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug')
-rw-r--r-- | base/debug/leak_tracker.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/debug/leak_tracker.h b/base/debug/leak_tracker.h index 8af82a9..9709aa1 100644 --- a/base/debug/leak_tracker.h +++ b/base/debug/leak_tracker.h @@ -91,8 +91,10 @@ class LeakTracker : public LinkNode<LeakTracker<T> > { stacktraces[count] = allocation_stack; ++count; - LOG(ERROR) << "Leaked " << node << " which was allocated by:"; - allocation_stack.OutputToStream(&LOG_STREAM(ERROR)); + if (LOG_IS_ON(ERROR)) { + LOG_STREAM(ERROR) << "Leaked " << node << " which was allocated by:"; + allocation_stack.OutputToStream(&LOG_STREAM(ERROR)); + } } CHECK_EQ(0u, count); |