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}); });