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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.1, 2.3.0
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: