Remove ostream dependency in redact() implementation

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-09-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The current implementation of std::string redact(const DBException& exceptionToRedact) uses an std::stringstream internally, which makes the redact.cpp TU depend on the <ostream> system header.

      It looks like this is not necessary, because the current implementation of std::string redact(const Status& statusToRedact) in the same module uses a StringBuilder.

      This can be improved so that both functions use a StringBuilder and no std::stringstream. This is more consistent, and apart from that the StringBuilder should have efficiency advantages over std::stringstream.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: