Skip to content

pyroute2 logs "shutdown in progress" warning after ipdb.release() is called #553

Closed
@PaulSD

Description

@PaulSD

If ipdb.release() is called (as is specified in the documentation), and logging is configured, then pyroute2 always logs "WARNING:pyroute2.ipdb.main:shutdown in progress" when python exits:

#!/usr/bin/env python
import logging
logging.basicConfig(level=logging.INFO)
from pyroute2 import IPDB
ipdb = IPDB()
ipdb.release()

It looks like the problem is:
https://github.com/svinota/pyroute2/blob/master/pyroute2/ipdb/main.py#L907
and
https://github.com/svinota/pyroute2/blob/master/pyroute2/ipdb/main.py#L1150

Can cleanup() be updated to skip the call to release() if _stop is True to avoid this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions