From 7e8fb49f7c5829ed5a6ac4a46deb54a3e65dfad5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 24 Apr 2017 23:23:01 +0300 Subject: Adjust build result logs page --- mod/mod-build-log.cxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'mod/mod-build-log.cxx') 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; -- cgit v1.1