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

Change formatting of Timestamp in logs to be proper javascript syntax

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • None
    • Server Security

    Description

      Timestamps are currently formatted like in this optime:

       lastOpCommitted: { ts: Timestamp 1477084219000|1, t: 1 }

      This makes it so you can't just copy and paste commands from logs to use for bug repros and in adhoc tests and have to go through and rewrite the command into

      lastOpCommitted: { ts: Timestamp(1477084219,1), t: 1 }

      in this case. Considering the latter syntax is no less readable, I think it could be useful to log Timestamps in a way that javascript does not complain about.

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: