From df6e8d951f9a4ae0cb42cd73e00aea890d0c2f44 Mon Sep 17 00:00:00 2001 From: Eiden Kim Date: Tue, 17 Jan 2023 20:59:37 -0800 Subject: [PATCH] Update custom path log to show correct path PiperOrigin-RevId: 502765322 --- connections/implementation/offline_service_controller.cc | 5 ++--- connections/implementation/service_controller_router.cc | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/connections/implementation/offline_service_controller.cc b/connections/implementation/offline_service_controller.cc index a88a1a3c..f5aecb6e 100644 --- a/connections/implementation/offline_service_controller.cc +++ b/connections/implementation/offline_service_controller.cc @@ -1,4 +1,4 @@ -// Copyright 2021-2023 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -147,8 +147,7 @@ void OfflineServiceController::SetCustomSavePath(ClientProxy* client, const std::string& path) { if (stop_) return; NEARBY_LOGS(INFO) << "Client " << client->GetClientId() - << " requested to set custom save path: " - << std::string(path); + << " requested to set custom save path: " << path; payload_manager_.SetCustomSavePath(client, path); } diff --git a/connections/implementation/service_controller_router.cc b/connections/implementation/service_controller_router.cc index 53cd5016..418bf3c8 100644 --- a/connections/implementation/service_controller_router.cc +++ b/connections/implementation/service_controller_router.cc @@ -1,4 +1,4 @@ -// Copyright 2021-2023 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -350,7 +350,7 @@ void ServiceControllerRouter::SetCustomSavePath( [this, client, path = std::string(path), callback]() { NEARBY_LOGS(INFO) << "Client " << client->GetClientId() << " has requested us to set custom save path to " - << std::string(path); + << path; GetServiceController()->SetCustomSavePath(client, path); callback.result_cb({Status::kSuccess}); });