Logging
Turn on the library's progress and timing messages.
portc logs through the standard library logging module, under the
portc logger, and stays silent by default: it adds only a NullHandler
and never touches the root logger or its handlers.
- Progress and timing of each sweep are logged at
DEBUG. - The exact fallback for networks with fewer than three sites logs a
WARNING.
To see them, configure logging in your application:
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger("portc").setLevel(logging.DEBUG)