Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-48327: Address technical feedback on Logging page #219

Merged
merged 4 commits into from
Mar 13, 2025

Conversation

mcmorisi
Copy link
Collaborator

@mcmorisi mcmorisi commented Mar 12, 2025

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-48327

Staging Links

  • logging
  • Self-Review Checklist

    • Is this free of any warnings or errors in the RST?
    • Did you run a spell-check?
    • Did you run a grammar-check?
    • Are all the links working?
    • Are the facets and meta keywords accurate?

    Copy link

    netlify bot commented Mar 12, 2025

    Deploy Preview for docs-pymongo ready!

    Name Link
    🔨 Latest commit dd54d05
    🔍 Latest deploy log https://app.netlify.com/sites/docs-pymongo/deploys/67d2edf4943d310008ed1355
    😎 Deploy Preview https://deploy-preview-219--docs-pymongo.netlify.app
    📱 Preview on mobile
    Toggle QR Code...

    QR Code

    Use your smartphone camera to open QR code link.

    To edit notification comments on pull requests, go to your Netlify site configuration.

    Copy link
    Collaborator

    @shuangela shuangela left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    lgtm!

    @mcmorisi mcmorisi requested a review from NoahStapp March 12, 2025 17:22

    .. code-block:: none

    INFO:pymongo.mongo_client:MongoClient opened default port on mongodb://localhost:27017/

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Can we use a pymongo.command log message here to match the example above?

    Copy link
    Collaborator Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Sure!

    @mcmorisi mcmorisi requested a review from NoahStapp March 13, 2025 13:45

    .. code-block:: none

    INFO:pymongo.command:Command insert on namespace test.test_collection

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    We should use an actual log message here, like this:

    DEBUG:pymongo.command:{"clientId": {"$oid": "65cbe82614be1fc2beb4e4a9"}, "message": "Command started", "command": "{\"insert\": \"test\", \"ordered\": true, \"lsid\": {\"id\": {\"$binary\": {\"base64\": \"GI7ubVhPSsWd7+OwHEFx6Q==\", \"subType\": \"04\"}}}, \"$db\": \"db\", \"documents\": [{\"x\": 1, \"_id\": {\"$oid\": \"65cbe82614be1fc2beb4e4aa\"}}]}", "commandName": "insert", "databaseName": "db", "requestId": 1144108930, "operationId": 1144108930, "driverConnectionId": 1, "serverConnectionId": 3554, "serverHost": "localhost", "serverPort": 27017}
    

    @mcmorisi mcmorisi requested a review from NoahStapp March 13, 2025 14:50
    @mcmorisi mcmorisi merged commit 15d495b into mongodb:master Mar 13, 2025
    6 checks passed
    @mcmorisi mcmorisi deleted the DOCSP-48327-logging-feedback branch March 13, 2025 15:42
    mcmorisi added a commit that referenced this pull request Mar 13, 2025
    mcmorisi added a commit that referenced this pull request Mar 13, 2025
    mcmorisi added a commit that referenced this pull request Mar 13, 2025
    mcmorisi added a commit that referenced this pull request Mar 13, 2025
    mcmorisi added a commit that referenced this pull request Mar 13, 2025
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants