We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4c521 commit 67904c2Copy full SHA for 67904c2
README.md
@@ -183,4 +183,26 @@ Congratulations, your project is ready to go!
183
184
## Troubleshooting
185
186
-TODO
+### Debug logging
187
+
188
+To troubleshoot MongoDB connectivity issues you can enable PyMongo's logging feature with Django's `LOGGING` setting.
189
190
+Here is a minimal Django `LOGGING` configuration that enables PyMongo's `DEBUG` logging in Django:
191
192
+```
193
+LOGGING = {
194
+ 'version': 1,
195
+ 'disable_existing_loggers': False,
196
+ 'handlers': {
197
+ 'console': {
198
+ 'class': 'logging.StreamHandler',
199
+ },
200
201
+ 'loggers': {
202
+ 'pymongo': {
203
+ 'handlers': ['console'],
204
+ 'level': 'DEBUG',
205
206
207
+}
208
0 commit comments