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

Provide more specific context for log messages

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: