We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd32360 commit 11b9733Copy full SHA for 11b9733
README.md
@@ -236,4 +236,20 @@ recreate it between api calls that use _stream_ and other api calls.
236
237
See more at [exec example](examples/pod_exec.py).
238
239
+## Enabling Debug Logging
240
+
241
+To enable debug logging in the Kubernetes Python client, follow these steps:
242
243
+### 1. Import the `logging` module
244
245
+```python
246
+import logging
247
248
+# Set the logging level to DEBUG
249
+logging.basicConfig(level=logging.DEBUG)
250
251
+# To see the HTTP requests and responses sent to the Kubernetes API (for debugging network-related issues), configure the urllib3 logger:
252
+logging.getLogger("urllib3").setLevel(logging.DEBUG)
253
+```
254
255
**[⬆ back to top](#Installation)**
0 commit comments