summaryrefslogtreecommitdiffstats
path: root/src/bin/agent
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-01-07 19:42:03 +0100
committerFrancis Dupont <fdupont@isc.org>2019-05-23 00:10:24 +0200
commit7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8 (patch)
tree6fdc34eabab3f6b13a594b8d3b8c1a98d0468a45 /src/bin/agent
parent[#208,!196] regen flex/bison (diff)
downloadkea-7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8.tar.xz
kea-7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8.zip
[208-move-logging-from-global-objects-to-global-params] Almost done. Checkpoint of the day
Diffstat (limited to 'src/bin/agent')
-rw-r--r--src/bin/agent/ca_cfg_mgr.cc6
-rw-r--r--src/bin/agent/parser_context.h6
2 files changed, 5 insertions, 7 deletions
diff --git a/src/bin/agent/ca_cfg_mgr.cc b/src/bin/agent/ca_cfg_mgr.cc
index 20c193bd10..5bf87e5e94 100644
--- a/src/bin/agent/ca_cfg_mgr.cc
+++ b/src/bin/agent/ca_cfg_mgr.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -145,7 +145,7 @@ CtrlAgentCfgContext::getControlSocketInfoSummary() const {
ElementPtr
CtrlAgentCfgContext::toElement() const {
- ElementPtr ca = Element::createMap();
+ ElementPtr ca = ConfigBase::toElement();
// Set user-context
contextToElement(ca);
// Set http-host
@@ -165,8 +165,6 @@ CtrlAgentCfgContext::toElement() const {
ElementPtr result = Element::createMap();
result->set("Control-agent", ca);
- // Set Logging (not yet)
-
return (result);
}
diff --git a/src/bin/agent/parser_context.h b/src/bin/agent/parser_context.h
index 2fbc0d272b..c7271a89ea 100644
--- a/src/bin/agent/parser_context.h
+++ b/src/bin/agent/parser_context.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -173,10 +173,10 @@ public:
///< Used while parsing Control-agent/hooks-libraries.
HOOKS_LIBRARIES,
- ///< Used while parsing Logging/loggers structures.
+ ///< Used while parsing Control-agent/loggers structures.
LOGGERS,
- ///< Used while parsing Logging/loggers/output_options structures.
+ ///< Used while parsing Control-agent/loggers/output_options structures.
OUTPUT_OPTIONS
} LexerContext;