From f1056299159b1938cdb2a4f15fcf4bd519fc6d10 Mon Sep 17 00:00:00 2001 From: Liping Mao Date: Tue, 9 Aug 2016 16:29:01 +0800 Subject: [PATCH] Add debug log for all the IpamDriver and NetworkDriver. Change-Id: I8941fd38d696cedd27b931a6ef6c759da1685160 --- kuryr_libnetwork/controllers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kuryr_libnetwork/controllers.py b/kuryr_libnetwork/controllers.py index 718de8ef..26096511 100755 --- a/kuryr_libnetwork/controllers.py +++ b/kuryr_libnetwork/controllers.py @@ -517,6 +517,7 @@ def plugin_activate(): https://github.com/docker/libnetwork/blob/master/docs/remote.md#handshake # noqa """ + app.logger.debug("Received /Plugin.Activate") return flask.jsonify(const.SCHEMA['PLUGIN_ACTIVATE']) @@ -533,6 +534,7 @@ def plugin_scope(): https://github.com/docker/libnetwork/blob/master/docs/remote.md#set-capability # noqa """ + app.logger.debug("Received /NetworkDriver.GetCapabilities") capabilities = {'Scope': cfg.CONF.capability_scope} return flask.jsonify(capabilities) @@ -549,6 +551,7 @@ def network_driver_discover_new(): https://github.com/docker/libnetwork/blob/master/docs/remote.md#discovernew-notification # noqa """ + app.logger.debug("Received /NetworkDriver.DiscoverNew") return flask.jsonify(const.SCHEMA['SUCCESS']) @@ -564,6 +567,7 @@ def network_driver_discover_delete(): https://github.com/docker/libnetwork/blob/master/docs/remote.md#discoverdelete-notification # noqa """ + app.logger.debug("Received /NetworkDriver.DiscoverDelete") return flask.jsonify(const.SCHEMA['SUCCESS']) @@ -880,6 +884,7 @@ def network_driver_create_endpoint(): @app.route('/NetworkDriver.EndpointOperInfo', methods=['POST']) def network_driver_endpoint_operational_info(): + app.logger.debug("Received /NetworkDriver.EndpointOperInfo") return flask.jsonify(const.SCHEMA['ENDPOINT_OPER_INFO'])