Search code examples
python-2.7telnetlib

What debug levels are available for telnetlib?


What do the debug level numbers correspond to in python's telnetlib? What is the maximum debug level? I've set numbers up to 400 without causing an exception.

https://docs.python.org/2/library/telnetlib.html#telnetlib.Telnet.set_debuglevel


Solution

  • As currently implemented, the only meaningful debug levels are 0 and > 0.

    Basically, you can set debuglevel as high as Python's long datatype allows you to. However, it will not change debugging output past the initial 1.