aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-log.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-24 23:23:01 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-24 23:28:38 +0300
commit7e8fb49f7c5829ed5a6ac4a46deb54a3e65dfad5 (patch)
tree281f12a774c07db49b53059d8c821de18b2cbbc5 /mod/mod-build-log.cxx
parent0cde847a1bb31f2b6c66e3d557a8bacc0e9186c4 (diff)
Adjust build result logs page
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;