Skip to content

Commit 8f74a33

Browse files
authored
Merge pull request #2345 from python-gitlab/jlvillal/enable_debug
docs: add minimal docs about the `enable_debug()` method
2 parents a3b4824 + b4e9ab7 commit 8f74a33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/api-usage.rst

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ To connect to GitLab.com or another GitLab instance, create a ``gitlab.Gitlab``
5050
# to validate your token authentication. Note that this will not work with job tokens.
5151
gl.auth()
5252
53+
# Enable "debug" mode. This can be useful when trying to determine what
54+
# information is being sent back and forth to the GitLab server.
55+
# Note: this will cause credentials and other potentially sensitive
56+
# information to be printed to the terminal.
57+
gl.enable_debug()
58+
5359
You can also use configuration files to create ``gitlab.Gitlab`` objects:
5460

5561
.. code-block:: python

0 commit comments

Comments
 (0)