diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-03-25 11:35:35 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-05 09:12:46 +0200 |
commit | e9020cd31b8dece788dd24b0557b2bc8582c5804 (patch) | |
tree | a1f3dad7da145b12229b3a8b22da2006f6cc76aa /mod | |
parent | a40eaf4cd1ee2a41a7acb0178b155ffbd92ea0a7 (diff) |
Use NOTIFICATION_DIAG
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mod-ci-github.cxx | 46 | ||||
-rw-r--r-- | mod/mod-ci-github.hxx | 16 |
2 files changed, 10 insertions, 52 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index 772e0d3..f89ce2c 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -866,11 +866,11 @@ namespace brep build_queued (const tenant_service& ts, const vector<build>& bs, optional<build_state> /* initial_state */, - const fail_mark<server_error>& /* fail */, - const basic_mark& error, - const basic_mark& /* warn */, - const basic_mark& trace) const noexcept + const build_queued_hints&, + const diag_epilogue& log_writer) const noexcept { + NOTIFICATION_DIAG (log_writer); + service_data sd; try { @@ -1017,49 +1017,15 @@ namespace brep function<optional<string> (const brep::tenant_service&)> brep::ci_github:: build_building (const tenant_service&, const build&, - const fail_mark<server_error>&, - const basic_mark&, - const basic_mark&, - const basic_mark&) const noexcept + const diag_epilogue& /* log_writer */) const noexcept { - // return [&b] (const tenant_service& ts) - // { - // string s ("building " + - // b.package_name.string () + '/' + - // b.package_version.string () + '/' + - // b.target.string () + '/' + - // b.target_config_name + '/' + - // b.package_config_name + '/' + - // b.toolchain_name + '/' + - // b.toolchain_version.string ()); - - // return ts.data ? *ts.data + ", " + s : s; - // }; - return nullptr; } function<optional<string> (const brep::tenant_service&)> brep::ci_github:: build_built (const tenant_service&, const build&, - const fail_mark<server_error>&, - const basic_mark&, - const basic_mark&, - const basic_mark&) const noexcept + const diag_epilogue& /* log_writer */) const noexcept { - // return [&b] (const tenant_service& ts) - // { - // string s ("built " + - // b.package_name.string () + '/' + - // b.package_version.string () + '/' + - // b.target.string () + '/' + - // b.target_config_name + '/' + - // b.package_config_name + '/' + - // b.toolchain_name + '/' + - // b.toolchain_version.string ()); - - // return ts.data ? *ts.data + ", " + s : s; - // }; - return nullptr; } diff --git a/mod/mod-ci-github.hxx b/mod/mod-ci-github.hxx index ea221ff..aacd877 100644 --- a/mod/mod-ci-github.hxx +++ b/mod/mod-ci-github.hxx @@ -170,24 +170,16 @@ namespace brep build_queued (const tenant_service&, const vector<build>&, optional<build_state> initial_state, - const fail_mark<server_error>& fail, - const basic_mark& error, - const basic_mark& warn, - const basic_mark& trace) const noexcept override; + const build_queued_hints&, + const diag_epilogue& log_writer) const noexcept override; virtual function<optional<string> (const tenant_service&)> build_building (const tenant_service&, const build&, - const fail_mark<server_error>& fail, - const basic_mark& error, - const basic_mark& warn, - const basic_mark& trace) const noexcept override; + const diag_epilogue& log_writer) const noexcept override; virtual function<optional<string> (const tenant_service&)> build_built (const tenant_service&, const build&, - const fail_mark<server_error>& fail, - const basic_mark& error, - const basic_mark& warn, - const basic_mark& trace) const noexcept override; + const diag_epilogue& log_writer) const noexcept override; private: virtual void |