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

Update the cppsuite logging code to use function calls wrapped in macros.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None

      Description

      In order to avoid unnecessary string allocations when we call log_msg() with trace_type greater than _trace_level we should use macros that will check log level before calling the log method. It can look similar to this:  

      #define LOG(lvl, msg) \
      do { \
          if (_trace_level >= lvl) \
              log_msg(lvl, msg); \
      } while (0)

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            luke.pearson Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: