]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1405] Make default "flush" option for logging "true"
authorStephen Morris <stephen@isc.org>
Mon, 12 Dec 2011 11:16:13 +0000 (11:16 +0000)
committerStephen Morris <stephen@isc.org>
Mon, 12 Dec 2011 11:16:13 +0000 (11:16 +0000)
By default, the logging layer should now flush after each message.

src/bin/cfgmgr/plugins/logging.spec
src/lib/log/output_option.h
src/lib/log/tests/output_option_unittest.cc

index e377b0eb0d293098420bec864cd11e40d3e94900..da20ce5091f25a5b6b22a4f279d55566191fe569 100644 (file)
@@ -57,7 +57,7 @@
                       { "item_name": "flush",
                         "item_type": "boolean",
                         "item_optional": false,
-                        "item_default": false
+                        "item_default": true
                       },
                       { "item_name": "maxsize",
                         "item_type": "integer",
index cbb7e95a89f70e466de49025551afcf8cb838968..8dfdd7021f5585860d78bd4e9e2d67504546bce6 100644 (file)
@@ -60,7 +60,7 @@ struct OutputOption {
 
     /// \brief Constructor
     OutputOption() : destination(DEST_CONSOLE), stream(STR_STDERR),
-                     flush(false), facility("LOCAL0"), filename(""),
+                     flush(true), facility("LOCAL0"), filename(""),
                      maxsize(0), maxver(0)
     {}
 
index 8f0e0de5e170e0ee1b6ee3930c3e64fa84b3a38b..ce00bb6ad53ed7ea51479e7c7e5cc66ee4bdb68f 100644 (file)
@@ -29,7 +29,7 @@ TEST(OutputOptionTest, Initialization) {
 
     EXPECT_EQ(OutputOption::DEST_CONSOLE, option.destination);
     EXPECT_EQ(OutputOption::STR_STDERR, option.stream);
-    EXPECT_FALSE(option.flush);
+    EXPECT_TRUE(option.flush);
     EXPECT_EQ(string("LOCAL0"), option.facility);
     EXPECT_EQ(string(""), option.filename);
     EXPECT_EQ(0, option.maxsize);