diff options
-rw-r--r-- | src/bin/cfgmgr/plugins/logging.spec | 2 | ||||
-rw-r--r-- | src/lib/log/output_option.h | 2 | ||||
-rw-r--r-- | src/lib/log/tests/output_option_unittest.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/cfgmgr/plugins/logging.spec b/src/bin/cfgmgr/plugins/logging.spec index e377b0eb0d..da20ce5091 100644 --- a/src/bin/cfgmgr/plugins/logging.spec +++ b/src/bin/cfgmgr/plugins/logging.spec @@ -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", diff --git a/src/lib/log/output_option.h b/src/lib/log/output_option.h index cbb7e95a89..8dfdd7021f 100644 --- a/src/lib/log/output_option.h +++ b/src/lib/log/output_option.h @@ -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) {} diff --git a/src/lib/log/tests/output_option_unittest.cc b/src/lib/log/tests/output_option_unittest.cc index 8f0e0de5e1..ce00bb6ad5 100644 --- a/src/lib/log/tests/output_option_unittest.cc +++ b/src/lib/log/tests/output_option_unittest.cc @@ -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); |