MCPcopy Create free account
hub / github.com/3rdparty/libprocess / set_level

Method set_level

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

nothing calls this directly

Calls 3

setFunction · 0.85
delayFunction · 0.50
remainingMethod · 0.45

Tested by

no test coverage detected