Update custom path log to show correct path

PiperOrigin-RevId: 502765322
This commit is contained in:
Eiden Kim
2023-01-17 21:01:51 -08:00
committed by Copybara-Service
parent d9b4985c76
commit df6e8d951f
2 changed files with 4 additions and 5 deletions
@@ -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);
}
@@ -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});
});