From 1367aa09951e0aa7491bc2a5bf7209b0b47be65e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 13 Sep 2018 19:27:00 +0300 Subject: Add support for packages and builds global views --- mod/mod-build-log.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/mod-build-log.cxx') diff --git a/mod/mod-build-log.cxx b/mod/mod-build-log.cxx index 70e2c7e..ee5d1b2 100644 --- a/mod/mod-build-log.cxx +++ b/mod/mod-build-log.cxx @@ -212,10 +212,13 @@ handle (request& rq, response& rs) // ostream& os (rs.content (200, "text/plain;charset=utf-8", false)); - auto print_header = [&os, &b] () + auto print_header = [&os, &b, this] () { - // @@ Should we print the tenant? How to call it if that's the case? + // Print the build tenant in the multi-tenant mode. // + if (!b->tenant.empty ()) + os << options_->tenant_name () << ": " << b->tenant << endl << endl; + os << "package: " << b->package_name << endl << "version: " << b->package_version << endl << "toolchain: " << b->toolchain_name << '-' << b->toolchain_version -- cgit v1.1