Commit d4896773 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Merge branch 'rnou/185-log-output-trunc-mode-does-not-work' into 'master'

Resolve "LOG_OUTPUT_TRUNC  environment variables does not work as expected"

Closes #185 and #187

See merge request !118
parents 389bf076 0f66d6d1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ PreloadContext::init_logging() {
    const std::string trunc_val =
            gkfs::env::get_var(gkfs::env::LOG_OUTPUT_TRUNC);

    const bool log_trunc = !(!trunc_val.empty() && trunc_val[0] == 0);
    const bool log_trunc = (!trunc_val.empty() && trunc_val[0] != '0');

    gkfs::log::create_global_logger(log_opts, log_output, log_trunc
#ifdef GKFS_DEBUG_BUILD