| 330 | } |
| 331 | |
| 332 | void 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 | |
| 351 | void impala::CheckAndRotateLogFiles(int max_log_files) { |
| 352 | lock_guard<mutex> logging_lock(logging_mutex); |
nothing calls this directly
no test coverage detected