aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-log.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-build-log.cxx')
-rw-r--r--mod/mod-build-log.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/mod/mod-build-log.cxx b/mod/mod-build-log.cxx
index 5342e3e..543292a 100644
--- a/mod/mod-build-log.cxx
+++ b/mod/mod-build-log.cxx
@@ -197,9 +197,25 @@ handle (request& rq, response& rs)
//
ostream& os (rs.content (200, "text/plain;charset=utf-8", false));
+ assert (b->machine && b->machine_summary);
+
+ os << "package: " << b->package_name << endl
+ << "version: " << b->package_version << endl
+ << "config: " << b->configuration << endl
+ << "machine: " << *b->machine << " (" << *b->machine_summary << ")"
+ << endl
+ << "target: " << (i->target
+ ? i->target->string ()
+ : "default") << endl << endl;
+
if (op.empty ())
{
for (const auto& r: b->results)
+ os << r.operation << ": " << r.status << endl;
+
+ os << endl;
+
+ for (const auto& r: b->results)
os << r.log;
}
else
@@ -213,7 +229,8 @@ handle (request& rq, response& rs)
if (i == r.end ())
config_expired ("no operation");
- os << i->log;
+ os << op << ": " << i->status << endl << endl
+ << i->log;
}
return true;