diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-10-27 09:15:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-27 09:15:25 +0200 |
| commit | 8f74a333ada3d819187dec5905aeca1352fba270 (patch) | |
| tree | 73d4d4aa4098467421b9cee989e016eaa0fe2d21 | |
| parent | a3b482459d1e2325bf9352a0ee952b35a38f7e32 (diff) | |
| parent | b4e9ab7ee395e575f17450c2dc0d519f7192e58e (diff) | |
| download | gitlab-8f74a333ada3d819187dec5905aeca1352fba270.tar.gz | |
Merge pull request #2345 from python-gitlab/jlvillal/enable_debug
docs: add minimal docs about the `enable_debug()` method
| -rw-r--r-- | docs/api-usage.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst index 81834d2..444064b 100644 --- a/docs/api-usage.rst +++ b/docs/api-usage.rst @@ -50,6 +50,12 @@ To connect to GitLab.com or another GitLab instance, create a ``gitlab.Gitlab`` # to validate your token authentication. Note that this will not work with job tokens. gl.auth() + # Enable "debug" mode. This can be useful when trying to determine what + # information is being sent back and forth to the GitLab server. + # Note: this will cause credentials and other potentially sensitive + # information to be printed to the terminal. + gl.enable_debug() + You can also use configuration files to create ``gitlab.Gitlab`` objects: .. code-block:: python |
