2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[1405] Make default "flush" option for logging "true"

By default, the logging layer should now flush after each message.
This commit is contained in:
Stephen Morris
2011-12-12 11:16:13 +00:00
parent 1615a521d6
commit 07d2c46d78
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@
{ "item_name": "flush", { "item_name": "flush",
"item_type": "boolean", "item_type": "boolean",
"item_optional": false, "item_optional": false,
"item_default": false "item_default": true
}, },
{ "item_name": "maxsize", { "item_name": "maxsize",
"item_type": "integer", "item_type": "integer",

View File

@@ -60,7 +60,7 @@ struct OutputOption {
/// \brief Constructor /// \brief Constructor
OutputOption() : destination(DEST_CONSOLE), stream(STR_STDERR), OutputOption() : destination(DEST_CONSOLE), stream(STR_STDERR),
flush(false), facility("LOCAL0"), filename(""), flush(true), facility("LOCAL0"), filename(""),
maxsize(0), maxver(0) maxsize(0), maxver(0)
{} {}

View File

@@ -29,7 +29,7 @@ TEST(OutputOptionTest, Initialization) {
EXPECT_EQ(OutputOption::DEST_CONSOLE, option.destination); EXPECT_EQ(OutputOption::DEST_CONSOLE, option.destination);
EXPECT_EQ(OutputOption::STR_STDERR, option.stream); EXPECT_EQ(OutputOption::STR_STDERR, option.stream);
EXPECT_FALSE(option.flush); EXPECT_TRUE(option.flush);
EXPECT_EQ(string("LOCAL0"), option.facility); EXPECT_EQ(string("LOCAL0"), option.facility);
EXPECT_EQ(string(""), option.filename); EXPECT_EQ(string(""), option.filename);
EXPECT_EQ(0, option.maxsize); EXPECT_EQ(0, option.maxsize);