Skip to content

Commit

Permalink
Disable the feature by default
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Pryakhin <[email protected]>
  • Loading branch information
waldgange committed Oct 16, 2024
1 parent b827d6f commit a63f4e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/groups/mwc/mwctsk/mwctsk_logcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ LogControllerConfig::LogControllerConfig(bslma::Allocator* allocator)
, d_syslogAppName("")
, d_syslogVerbosity(ball::Severity::ERROR)
, d_categories(allocator)
, d_recordBufferSize(32768)
, d_recordingVerbosity(ball::Severity::OFF)
, d_triggerVerbosity(ball::Severity::OFF)
{
// NOTHING
}
Expand All @@ -167,6 +170,9 @@ LogControllerConfig::LogControllerConfig(const LogControllerConfig& other,
, d_syslogAppName(other.d_syslogAppName, allocator)
, d_syslogVerbosity(other.d_syslogVerbosity)
, d_categories(other.d_categories, allocator)
, d_recordBufferSize(other.d_recordBufferSize)
, d_recordingVerbosity(other.d_recordingVerbosity)
, d_triggerVerbosity(other.d_triggerVerbosity)
{
// NOTHING
}
Expand All @@ -189,6 +195,9 @@ LogControllerConfig::operator=(const LogControllerConfig& rhs)
d_syslogAppName = rhs.d_syslogAppName;
d_syslogVerbosity = rhs.d_syslogVerbosity;
d_categories = rhs.d_categories;
d_recordBufferSize = rhs.d_recordBufferSize;
d_recordingVerbosity = rhs.d_recordingVerbosity;
d_triggerVerbosity = rhs.d_triggerVerbosity;
}

return *this;
Expand Down
4 changes: 2 additions & 2 deletions src/groups/mwc/mwctsk/mwctsk_logcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ int LogControllerConfig::fromObj(bsl::ostream& errorDescription,
return -1; // RETURN
}

d_recordingVerbosity = ball::Severity::e_TRACE;
d_triggerVerbosity = ball::Severity::e_FATAL;
d_recordingVerbosity = ball::Severity::OFF;
d_triggerVerbosity = ball::Severity::OFF;
// if (ball::SeverityUtil::fromAsciiCaseless(
// &d_recordingVerbosity,
// obj.logDump().recordingLevel().c_str()) != 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/groups/mwc/mwctsk/mwctsk_logcontroller.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ static void test1_logControllerConfigFromObj()
ASSERT_EQ(config.syslogVerbosity(), ball::Severity::INFO);

ASSERT_EQ(config.recordBufferSize(), 32768);
ASSERT_EQ(config.recordingVerbosity(), ball::Severity::TRACE);
ASSERT_EQ(config.triggerVerbosity(), ball::Severity::FATAL);
ASSERT_EQ(config.recordingVerbosity(), ball::Severity::OFF);
ASSERT_EQ(config.triggerVerbosity(), ball::Severity::OFF);
}

// ============================================================================
Expand Down

0 comments on commit a63f4e7

Please sign in to comment.