MCPcopy Create free account
hub / github.com/apache/impala / LogCommandLineFlags

Method LogCommandLineFlags

be/src/common/logging.cc:332–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void impala::LogCommandLineFlags() {
333 LOG(INFO) << "Flags (see also /varz are on debug webserver):" << endl
334 << kudu::CommandlineFlagsIntoString(kudu::EscapeMode::NONE, kudu::Selection::ALL);
335
336 vector<google::CommandLineFlagInfo> flags;
337 google::GetAllFlags(&flags, true);
338 stringstream ss;
339 for (const auto& flag: flags) {
340 if (flag.hidden) {
341 string flag_value = CheckFlagAndRedact(flag, kudu::EscapeMode::NONE);
342 ss << "--" << flag.name << "=" << flag_value << "\n";
343 }
344 }
345 string experimental_flags = ss.str();
346 if (!experimental_flags.empty()) {
347 LOG(WARNING) << "Experimental flags:" << endl << experimental_flags;
348 }
349}
350
351void impala::CheckAndRotateLogFiles(int max_log_files) {
352 lock_guard<mutex> logging_lock(logging_mutex);

Callers

nothing calls this directly

Calls 4

CheckFlagAndRedactFunction · 0.85
strMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected