| Index: dbus/object_proxy.cc
|
| diff --git a/dbus/object_proxy.cc b/dbus/object_proxy.cc
|
| index e7d1f22f16243c2db1a095d2ce19d9a769bc0e03..6c758b9ea9c838b68a3d71c3d116ca516e3cfa1a 100644
|
| --- a/dbus/object_proxy.cc
|
| +++ b/dbus/object_proxy.cc
|
| @@ -565,17 +565,19 @@ void ObjectProxy::LogMethodCallFailure(
|
| if (ignore_service_unknown_errors_ &&
|
| (error_name == kErrorServiceUnknown || error_name == kErrorObjectUnknown))
|
| return;
|
| - logging::LogSeverity severity = logging::LOG_ERROR;
|
| - // "UnknownObject" indicates that an object or service is no longer available,
|
| - // e.g. a Shill network service has gone out of range. Treat these as warnings
|
| - // not errors.
|
| - if (error_name == kErrorObjectUnknown)
|
| - severity = logging::LOG_WARNING;
|
| +
|
| std::ostringstream msg;
|
| msg << "Failed to call method: " << interface_name << "." << method_name
|
| << ": object_path= " << object_path_.value()
|
| << ": " << error_name << ": " << error_message;
|
| - logging::LogAtLevel(severity, msg.str());
|
| +
|
| + // "UnknownObject" indicates that an object or service is no longer available,
|
| + // e.g. a Shill network service has gone out of range. Treat these as warnings
|
| + // not errors.
|
| + if (error_name == kErrorObjectUnknown)
|
| + LOG(WARNING) << msg.str();
|
| + else
|
| + LOG(ERROR) << msg.str();
|
| }
|
|
|
| void ObjectProxy::OnCallMethodError(const std::string& interface_name,
|
|
|