From 4f33f932ad62351f9f7407730afff4aa3e88f2c6 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Thu, 26 Jan 2023 16:27:50 +0100 Subject: bytestream_client: report failures on LogLevel::Error --- src/buildtool/execution_api/remote/bazel/bytestream_client.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/buildtool/execution_api/remote/bazel/bytestream_client.hpp') diff --git a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp index 8edaef3e..9be55bc5 100644 --- a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp +++ b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp @@ -122,7 +122,7 @@ class ByteStreamClient { // writing from the returned `committed_size`. auto const committed_size = QueryWriteStatus(resource_name); if (committed_size <= 0) { - logger_.Emit(LogLevel::Debug, + logger_.Emit(LogLevel::Error, "broken stream for upload to resource name {}", resource_name); return false; @@ -134,7 +134,7 @@ class ByteStreamClient { } } while (pos < data.size()); if (not writer->WritesDone()) { - logger_.Emit(LogLevel::Debug, + logger_.Emit(LogLevel::Error, "broken stream for upload to resource name {}", resource_name); return false; @@ -142,7 +142,7 @@ class ByteStreamClient { auto status = writer->Finish(); if (not status.ok()) { - LogStatus(&logger_, LogLevel::Debug, status); + LogStatus(&logger_, LogLevel::Error, status); return false; } -- cgit v1.2.3