diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-12-12 14:40:44 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-12-13 23:04:36 +0100 |
commit | 546d510d5e5fd99d931fc87347398024c4fc2b18 (patch) | |
tree | 41093cb4db50f81758ec99ccb5ac31a9b7f7c902 /src/buildtool/execution_engine/executor/executor.hpp | |
parent | dad86d8da48f4bf0524379f3fe7db92e1f78afd9 (diff) | |
download | justbuild-546d510d5e5fd99d931fc87347398024c4fc2b18.tar.gz |
executor.hpp: log more info in case of failure
Diffstat (limited to 'src/buildtool/execution_engine/executor/executor.hpp')
-rw-r--r-- | src/buildtool/execution_engine/executor/executor.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index c4e6c6b7..29b16a1d 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -325,9 +325,15 @@ class ExecutorImpl { // if known tree is not available, recursively upload its content auto tree = ReadGitTree(repo, repo_config, hash); if (not tree) { + Logger::Log( + LogLevel::Error, "failed to read git tree {}", hash); return false; } if (not VerifyOrUploadTree(api, *tree)) { + Logger::Log(LogLevel::Error, + "failed to verifyorupload git tree {} [{}]", + tree->Hash(), + hash); return false; } content = tree->RawData(); @@ -337,6 +343,7 @@ class ExecutorImpl { content = ReadGitBlob(repo, repo_config, hash); } if (not content) { + Logger::Log(LogLevel::Error, "failed to get content"); return false; } |