Unverified Commit 9464ffd3 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Adding "none" to LIBGKFS_LOG disables previous flags

parent ac016ef2
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -140,6 +140,12 @@ process_log_options(const std::string gkfs_debug) {
        bool is_known = false;

        for(const auto& opt : debug_opts) {

            // none disables any future and previous flags observed
            if(t == "none") {
                return log::none;
            }

            if(t == opt.name_) {
                dm |= opt.mask_;
                is_known = true;