summaryrefslogtreecommitdiffstats
path: root/base/leak_tracker.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 23:02:36 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 23:02:36 +0000
commit521b0c4d567df30646a116eea550b89ca09f3feb (patch)
treece269cec2533e674b24a20043e7505c65ff262f3 /base/leak_tracker.h
parent0428acf1b32888573ec924cc8333edae3a25b647 (diff)
downloadchromium_src-521b0c4d567df30646a116eea550b89ca09f3feb.zip
chromium_src-521b0c4d567df30646a116eea550b89ca09f3feb.tar.gz
chromium_src-521b0c4d567df30646a116eea550b89ca09f3feb.tar.bz2
Made logging macros evaluate its stream arguments lazily.
Also added logging unittests. BUG=57383 TEST=logging_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61127 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61142 Review URL: http://codereview.chromium.org/3575008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61249 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/leak_tracker.h')
-rw-r--r--base/leak_tracker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/leak_tracker.h b/base/leak_tracker.h
index dd85ff6..96d8773 100644
--- a/base/leak_tracker.h
+++ b/base/leak_tracker.h
@@ -91,7 +91,7 @@ class LeakTracker : public LinkNode<LeakTracker<T> > {
++count;
LOG(ERROR) << "Leaked " << node << " which was allocated by:";
- allocation_stack.OutputToStream(&LOG(ERROR));
+ allocation_stack.OutputToStream(&LOG_STREAM(ERROR));
}
CHECK_EQ(0u, count);