aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/log-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/log-store.cc')
-rw-r--r--src/libstore/log-store.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstore/log-store.cc b/src/libstore/log-store.cc
new file mode 100644
index 000000000..8a26832ab
--- /dev/null
+++ b/src/libstore/log-store.cc
@@ -0,0 +1,12 @@
+#include "log-store.hh"
+
+namespace nix {
+
+std::optional<std::string> LogStore::getBuildLog(const StorePath & path) {
+ auto maybePath = getBuildDerivationPath(path);
+ if (!maybePath)
+ return std::nullopt;
+ return getBuildLogExact(maybePath.value());
+}
+
+}