Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43292

log() should handle std::string_view

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Dev Tools 2020-03-09

      This seems an easy thing to write. I just stumbled upon something like this in a code review:

      unittest::log() << "foo " << std::string(myStringView) << " bar";
      

      Given our usually accommodating logger system, this seems a bit jarring.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: