summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-03-03 17:07:01 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-03-13 17:28:59 +0100
commit04e1e46a2d662c702292ee18d67a13688bc8da43 (patch)
tree451d311755b5b63ca92dfa471e86603dda9be6fc
parentfafbd62e63dac7c08514b9ffa5e8776666759afb (diff)
downloadjustbuild-04e1e46a2d662c702292ee18d67a13688bc8da43.tar.gz
Artifact: No user error on object info parse fail
-rw-r--r--src/buildtool/common/artifact.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/common/artifact.hpp b/src/buildtool/common/artifact.hpp
index 72909944..eb5be3a3 100644
--- a/src/buildtool/common/artifact.hpp
+++ b/src/buildtool/common/artifact.hpp
@@ -74,7 +74,7 @@ class Artifact {
if (not(iss.get() == '[') or not std::getline(iss, id, ':') or
not std::getline(iss, size_str, ':') or
not std::getline(iss, type, ']')) {
- Logger::Log(LogLevel::Error,
+ Logger::Log(LogLevel::Debug,
"failed parsing object info from string.");
return std::nullopt;
}
@@ -85,10 +85,10 @@ class Artifact {
ArtifactDigest{id, size, IsTreeObject(object_type)},
object_type};
} catch (std::out_of_range const& e) {
- Logger::Log(LogLevel::Error,
+ Logger::Log(LogLevel::Debug,
"size raised out_of_range exception.");
} catch (std::invalid_argument const& e) {
- Logger::Log(LogLevel::Error,
+ Logger::Log(LogLevel::Debug,
"size raised invalid_argument exception.");
}
return std::nullopt;