diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-06 16:33:19 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-06 16:55:26 +0200 |
commit | df4ac66b272d1e26df42855143dda79fc268b558 (patch) | |
tree | dc84f50a5d9d86949b0b2cba7bc4367e90582df8 /src/buildtool/main/build_utils.hpp | |
parent | f63d3df866a2d75b694c8c484b21fbcdccd58acd (diff) | |
download | justbuild-df4ac66b272d1e26df42855143dda79fc268b558.tar.gz |
tc writing: allow different log level
... for failures instead of the binary strict_logging. In this
way, we can log at log level Error in the serve instance, and for
the client at level Warning or Info, depending on whether failure
is expected (i.e., if targets are potentially taken from a serve
endpoint) or not.
Diffstat (limited to 'src/buildtool/main/build_utils.hpp')
-rw-r--r-- | src/buildtool/main/build_utils.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/main/build_utils.hpp b/src/buildtool/main/build_utils.hpp index 60f2ca97..af99d6a0 100644 --- a/src/buildtool/main/build_utils.hpp +++ b/src/buildtool/main/build_utils.hpp @@ -31,6 +31,7 @@ #include "src/buildtool/common/artifact.hpp" #include "src/buildtool/common/artifact_digest.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" +#include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" #include "src/buildtool/multithreading/async_map_consumer.hpp" #include "src/buildtool/storage/storage.hpp" @@ -93,7 +94,7 @@ void WriteTargetCacheEntries( TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync, TargetCache<true> const& tc = Storage::Instance().TargetCache(), Logger const* logger = nullptr, - bool strict_logging = false); + LogLevel log_level = LogLevel::Warning); #endif // BOOTSTRAP_BUILD_TOOL #endif // INCLUDED_SRC_BUILDOOL_MAIN_BUILD_UTILS_HPP |