summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-01-26 16:27:50 +0100
committerAlberto Sartori <alberto.sartori@huawei.com>2023-02-02 16:16:42 +0100
commit4f33f932ad62351f9f7407730afff4aa3e88f2c6 (patch)
tree09cde9e1c84dfce63f1d14d09703b9e7a120c284 /src
parentc3793be11bd76e003a1c929f746058e95b77f68e (diff)
downloadjustbuild-4f33f932ad62351f9f7407730afff4aa3e88f2c6.tar.gz
bytestream_client: report failures on LogLevel::Error
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bytestream_client.hpp6
1 files changed, 3 insertions, 3 deletions
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;
}