diff options
author | Ben Murdoch <benm@google.com> | 2011-01-07 14:18:56 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-01-11 10:23:13 +0000 |
commit | 201ade2fbba22bfb27ae029f4d23fca6ded109a0 (patch) | |
tree | b793f4ed916f73cf18357ea467ff3deb5ffb5b52 /base/debug/leak_tracker.h | |
parent | d8c4c37a7d0961944bfdfaa117d5c68c8e129c97 (diff) | |
download | external_chromium-201ade2fbba22bfb27ae029f4d23fca6ded109a0.zip external_chromium-201ade2fbba22bfb27ae029f4d23fca6ded109a0.tar.gz external_chromium-201ade2fbba22bfb27ae029f4d23fca6ded109a0.tar.bz2 |
Merge chromium at 9.0.597.55: Initial merge by git.
Change-Id: Id686a88437441ec7e17abb3328a404c7b6c3c6ad
Diffstat (limited to 'base/debug/leak_tracker.h')
-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); |