summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/net_log_logger.cc
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-03 15:08:44 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-03 15:08:44 +0000
commit73f0934327ea3d847e3a6bccc1229b2992741398 (patch)
tree816217fdda7436110ccc5f01bbf606170cd73d74 /chrome/browser/net/net_log_logger.cc
parentc40520ee3eb467320be787111bdcb180fe27dbdd (diff)
downloadchromium_src-73f0934327ea3d847e3a6bccc1229b2992741398.zip
chromium_src-73f0934327ea3d847e3a6bccc1229b2992741398.tar.gz
chromium_src-73f0934327ea3d847e3a6bccc1229b2992741398.tar.bz2
Add a command line option to set the minimum logging
level used by the NetLog. BUG=80851 TEST=none Review URL: http://codereview.chromium.org/6893131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/net_log_logger.cc')
-rw-r--r--chrome/browser/net/net_log_logger.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/net/net_log_logger.cc b/chrome/browser/net/net_log_logger.cc
index 1468e6f..e0f67a3 100644
--- a/chrome/browser/net/net_log_logger.cc
+++ b/chrome/browser/net/net_log_logger.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -26,9 +26,9 @@ void NetLogLogger::OnAddEntry(net::NetLog::EventType type,
const net::NetLog::Source& source,
net::NetLog::EventPhase phase,
net::NetLog::EventParameters* params) {
- scoped_ptr<Value> value(net::NetLog::EntryToDictionaryValue(type, time,
- source, phase,
- params, true));
+ scoped_ptr<Value> value(
+ net::NetLog::EntryToDictionaryValue(
+ type, time, source, phase, params, true));
// Don't pretty print, so each JSON value occupies a single line, with no
// breaks (Line breaks in any text field will be escaped). Using strings
// instead of integer identifiers allows logs from older versions to be
@@ -41,4 +41,3 @@ void NetLogLogger::OnAddEntry(net::NetLog::EventType type,
fprintf(file_.get(), "%s\n", json.c_str());
}
}
-