Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8332

Use WT_VERBOSE_DEFAULT as the default verbosity level

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 2

      In WT-8192, we extended the verbose API to support the assignment of verbosity levels per event category. In one place, we should use WT_VERBOSE_DEFAULT instead of WT_VERBOSE_DEBUG:

              else if (sval.type == WT_CONFIG_ITEM_BOOL && sval.len == 0)
                  /*
                   * If no value is associated with the event (i.e passing verbose=[checkpoint]), default
                   * the event to WT_VERBOSE_DEBUG. Correspondingly, all legacy uses of '__wt_verbose',
                   * being messages without an explicit verbosity level, will default to
                   * 'WT_VERBOSE_DEBUG'.
                   */
                  conn->verbose[ft->flag] = WT_VERBOSE_DEBUG; 

      When the level is not specified, we should assign the category to WT_VERBOSE_DEFAULT.

      Definition of done:

      Update the code and the comment just above accordingly.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: