shill: Replace VLOG with SLOG.
This CL replaces all uses of VLOG(level) with SLOG(scope, level) with
the same verbose level and an appropriate scope for each affected
logging statement.
BUG=chromium-os:29641
TEST=Build and run unit tests. Test scope logging with ff_debug.
Change-Id: Ifdcf1faa2a309bcbd9ee369a66179ce9c7f1ad19
Reviewed-on: https://gerrit.chromium.org/gerrit/20629
Commit-Ready: Ben Chan <benchan@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
diff --git a/dbus_properties_proxy.cc b/dbus_properties_proxy.cc
index 88875ba..8c2ea7d 100644
--- a/dbus_properties_proxy.cc
+++ b/dbus_properties_proxy.cc
@@ -1,10 +1,10 @@
-// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/dbus_properties_proxy.h"
-#include <base/logging.h>
+#include "shill/scope_logger.h"
namespace shill {
@@ -35,7 +35,7 @@
void DBusPropertiesProxy::Proxy::MmPropertiesChanged(
const string &interface,
const DBusPropertiesMap &properties) {
- VLOG(2) << __func__ << "(" << interface << ")";
+ SLOG(DBus, 2) << __func__ << "(" << interface << ")";
delegate_->OnModemManagerPropertiesChanged(interface, properties);
}
@@ -43,7 +43,7 @@
const string &interface,
const DBusPropertiesMap &changed_properties,
const vector<string> &invalidated_properties) {
- VLOG(2) << __func__ << "(" << interface << ")";
+ SLOG(DBus, 2) << __func__ << "(" << interface << ")";
delegate_->OnDBusPropertiesChanged(
interface, changed_properties, invalidated_properties);
}