Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1060

Provide more specific context for log messages

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      A user recently had trouble understanding the context and effect of the log message below:

      2016-01-28T21:30:18.817+0000 error: E11000 duplicate key error collection: db.coll index: _id_ dup key: { : ObjectId('4d37401365599637bc0046ee') }

      It would be helpful for users and support if we provided some additional information that could be helpful in diagnosing the issue e.g. prefixing the log message with the word "insert " or "flush ", etc.

      For reference, those logs are from mongorestore. We should make some updates to output more descriptive error messages across the tools.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: