E11000 duplicate key error, why multiple formats?

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.2.9
    • Component/s: Logging
    • Storage Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am receiving the E11000 duplicate key error in different formats when running our application on different local machines.

      Format 1:
      u'E11000 duplicate key error collection: baseclass.users index: email dup key: { : "jianyang@mailinator.com" }'

      Format 2:
      u'E11000 duplicate key error index: baseclass.users.$email dup key: { : "jianyang@mailinator.com" }'

      What is the reason for this, and how can I control this formatting? I am trying to reliably extract some data from this string.

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Christopher Antonellis
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: