Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
aclark4life committed Nov 21, 2024
1 parent 254facc commit 9c50895
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,13 @@ Congratulations, your project is ready to go!

### Debug logging

To troubleshoot MongoDB connectivity issues you can enable PyMongo's logging feature with Django's `LOGGING` setting.
To troubleshoot MongoDB connectivity issues, you can enable [PyMongo's logging
feature](https://pymongo.readthedocs.io/en/stable/examples/logging.html) with
[Django's `LOGGING` setting](
https://docs.djangoproject.com/en/stable/topics/logging/).

Here is a minimal Django `LOGGING` configuration that enables PyMongo's `DEBUG` logging in Django:
Here is a minimal Django `LOGGING` configuration that enables PyMongo's
`DEBUG` logging:

```
LOGGING = {
Expand All @@ -206,3 +210,5 @@ LOGGING = {
},
}
```

_`PyMongo's logging feature`: https://pymongo.readthedocs.io/en/stable/api/pymongo/logging.html

0 comments on commit 9c50895

Please sign in to comment.