Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: mark up the FTP debug levels as a list #114360

Merged
merged 2 commits into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Doc/library/ftplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,15 @@ FTP objects

.. method:: FTP.set_debuglevel(level)

Set the instance's debugging level. This controls the amount of debugging
output printed. The default, ``0``, produces no debugging output. A value of
``1`` produces a moderate amount of debugging output, generally a single line
per request. A value of ``2`` or higher produces the maximum amount of
debugging output, logging each line sent and received on the control connection.

Set the instance's debugging level as an :class:`int`.
This controls the amount of debugging output printed.
The debug levels are:

* ``0`` (default): No debug output.
* ``1``: Produce a moderate amount of debug output,
generally a single line per request.
* ``2`` or higher: Produce the maximum amount of debugging output,
logging each line sent and received on the control connection.

.. method:: FTP.connect(host='', port=0, timeout=None, source_address=None)

Expand Down
Loading