Added missing HTTP logging to agent endpoints. A couple of agent endpoints (statistics and containers) were missing HTTP logging.
Review: https://reviews.apache.org/r/58239/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8aad935c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8aad935c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/8aad935c Branch: refs/heads/master Commit: 8aad935c8edff78cffcd194b616a30be7be53dc9 Parents: 7963c53 Author: James Peach <[email protected]> Authored: Thu Apr 6 13:11:50 2017 -0700 Committer: Anand Mazumdar <[email protected]> Committed: Thu Apr 6 13:13:17 2017 -0700 ---------------------------------------------------------------------- src/slave/slave.cpp | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/8aad935c/src/slave/slave.cpp ---------------------------------------------------------------------- diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp index f484513..f013e9c 100644 --- a/src/slave/slave.cpp +++ b/src/slave/slave.cpp @@ -670,6 +670,7 @@ void Slave::initialize() Http::STATISTICS_HELP(), [this](const process::http::Request& request, const Option<Principal>& principal) { + logRequest(request); return http.statistics(request, principal); }); // TODO(ijimenez): Remove this endpoint at the end of the @@ -679,6 +680,7 @@ void Slave::initialize() Http::STATISTICS_HELP(), [this](const process::http::Request& request, const Option<Principal>& principal) { + logRequest(request); return http.statistics(request, principal); }); route("/containers", @@ -686,6 +688,7 @@ void Slave::initialize() Http::CONTAINERS_HELP(), [this](const process::http::Request& request, const Option<Principal>& principal) { + logRequest(request); return http.containers(request, principal); });
