MCPcopy Create free account
hub / github.com/apache/mesos / set_level

Method set_level

3rdparty/libprocess/src/logging.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72Future<Nothing> Logging::set_level(int level, const Duration& duration)
73{
74 // Set the logging level.
75 set(level);
76
77 // Start a revert timer (if necessary).
78 if (level != original) {
79 timeout = duration;
80 delay(timeout.remaining(), this, &This::revert);
81 }
82
83 return Nothing();
84}
85
86
87const std::string Logging::TOGGLE_HELP()

Callers 3

TEST_PFunction · 0.80
getLoggingLevelMethod · 0.80
getLoggingLevelMethod · 0.80

Calls 4

NothingClass · 0.85
setFunction · 0.50
delayFunction · 0.50
remainingMethod · 0.45

Tested by 1

TEST_PFunction · 0.64