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

The 'test' program does not log messages in msgasserted()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.2.1, 2.3.0
    • None
    • Logging
    • None
    • Fully Compatible
    • ALL

    Description

      The msgasserted() function in util/assert_util.cpp uses tlog() to log messages instead of log(). Because tlogLevel is set to -1 in dbtests/framework.cpp, this suppresses all messages describing the cause of assertions thrown by the 'test' program. It does, however, display stack traces to 'cout', so we get stack traces with no explanation in the output of 'test'. The 'test' logs would be easier to interpret if we could see the reason for the stack traces.

      Changing 'tlog()' to 'log()' in msgasserted() would fix this.

      Attachments

        Activity

          People

            tad Tad Marshall
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: