diff --git a/chromium_src/base/logging/rust_log_integration.cc b/chromium_src/base/logging/rust_logger/print_rust_log_ffi.cc similarity index 52% rename from chromium_src/base/logging/rust_log_integration.cc rename to chromium_src/base/logging/rust_logger/print_rust_log_ffi.cc index 473e17ed5d8..9b072cf1b90 100644 --- a/chromium_src/base/logging/rust_log_integration.cc +++ b/chromium_src/base/logging/rust_logger/print_rust_log_ffi.cc @@ -3,33 +3,31 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at https://mozilla.org/MPL/2.0/. */ -#include "base/logging/rust_log_integration.h" +#include "base/logging/rust_logger/print_rust_log_ffi.h" #include "base/logging.h" #define print_rust_log print_rust_log_chromium_impl -#include +#include #undef print_rust_log -namespace logging { -namespace internal { +namespace logging::internal { void print_rust_log(const RustFmtArguments& msg, const char* file, int32_t line, - int32_t severity, - bool verbose) { + int32_t severity) { switch (severity) { - // Trace and debug logs are set as `LOGGING_INFO`. Trace is also set as - // verbose, so we make a higher level verbosity. We also map `LOGGING_WARN` - // to verbose, to avoid "excessive output" errors in unit tests. + // Trace and debug logs are set as `LOGGING_INFO`. We also map + // `LOGGING_WARN` to verbose, to avoid "excessive output" errors in unit + // tests. case LOGGING_INFO: case LOGGING_WARNING: - severity = LOGGING_VERBOSE - verbose; + severity = LOGGING_VERBOSE; break; default: // All other cases are handled by the upstream version. - print_rust_log_chromium_impl(msg, file, line, severity, verbose); + print_rust_log_chromium_impl(msg, file, line, severity); return; } @@ -37,8 +35,7 @@ void print_rust_log(const RustFmtArguments& msg, return; } - print_rust_log_chromium_impl(msg, file, line, severity, verbose); + print_rust_log_chromium_impl(msg, file, line, severity); } -} // namespace internal -} // namespace logging +} // namespace logging::internal