Commit 203dfd15 authored by Peter V. Saveliev's avatar Peter V. Saveliev

logging: do not call `logging.basicConfig()`

Do not call `basicConfig()`, thus add no default stram handler.

Bug-Url: https://github.com/svinota/pyroute2/issues/255
parent 0a0e969f
......@@ -16,7 +16,6 @@ from pyroute2.netlink.exceptions import \
NetlinkError, \
NetlinkDecodeError
logging.basicConfig()
log = logging.getLogger(__name__)
# reexport exceptions
......
......@@ -519,7 +519,6 @@ from pyroute2.ipdb.linkedset import IPaddrSet
from pyroute2.ipdb.exceptions import CreateException
from pyroute2.ipdb.transactional import SYNC_TIMEOUT
logging.basicConfig()
log = logging.getLogger(__name__)
......
......@@ -19,7 +19,6 @@ from pyroute2.ipdb.transactional import with_transaction
from pyroute2.ipdb.transactional import SYNC_TIMEOUT
from pyroute2.ipdb.linkedset import LinkedSet
logging.basicConfig()
log = logging.getLogger(__name__)
......
......@@ -6,7 +6,6 @@ from pyroute2.netlink.rtnl.fibmsg import FR_ACT_NAMES
from pyroute2.ipdb.exceptions import CommitException
from pyroute2.ipdb.transactional import Transactional
logging.basicConfig()
log = logging.getLogger(__name__)
......
......@@ -237,7 +237,6 @@ from pyroute2.common import getbroadcast
from pyroute2.netlink.exceptions import NetlinkError
DEFAULT_TABLE = 254
logging.basicConfig()
log = logging.getLogger(__name__)
......
......@@ -406,7 +406,6 @@ from pyroute2.netlink.exceptions import NetlinkError
from pyroute2.netlink.exceptions import NetlinkDecodeError
from pyroute2.netlink.exceptions import NetlinkNLADecodeError
logging.basicConfig()
log = logging.getLogger(__name__)
# make pep8 happy
_ne = NetlinkError # reexport for compatibility
......
......@@ -117,7 +117,6 @@ try:
except ImportError:
from queue import Queue
logging.basicConfig()
log = logging.getLogger(__name__)
......
......@@ -9,7 +9,6 @@ from pyroute2.common import rate_suffixes
from pyroute2.common import basestring
from pyroute2.netlink import nla
logging.basicConfig()
log = logging.getLogger(__name__)
LINKLAYER_UNSPEC = 0
......
......@@ -32,7 +32,6 @@ from pyroute2.netlink.rtnl.tcmsg.common import red_eval_P
from pyroute2.netlink.rtnl.tcmsg.common import red_eval_idle_damping
from pyroute2.netlink.rtnl.tcmsg.common import stats2 as c_stats2
logging.basicConfig()
log = logging.getLogger(__name__)
parent = TC_H_ROOT
......
......@@ -4,7 +4,6 @@ from pyroute2.netlink.rtnl import TC_H_ROOT
from pyroute2.netlink.rtnl.tcmsg.common import get_time
from pyroute2.netlink.rtnl.tcmsg.common import stats2 as c_stats2
logging.basicConfig()
log = logging.getLogger(__name__)
parent = TC_H_ROOT
......
......@@ -5,7 +5,6 @@ from pyroute2.netlink.rtnl import TC_H_ROOT
from pyroute2.netlink.rtnl.tcmsg import common
from pyroute2.netlink.rtnl.tcmsg.common import get_time
logging.basicConfig()
log = logging.getLogger(__name__)
parent = TC_H_ROOT
......
......@@ -78,7 +78,6 @@ from pyroute2.netns import remove
from pyroute2.remote import Server
from pyroute2.remote import RemoteSocket
logging.basicConfig()
log = logging.getLogger(__name__)
......
......@@ -8,7 +8,6 @@ import traceback
import threading
from pyroute2.netlink.exceptions import NetlinkError
logging.basicConfig()
log = logging.getLogger(__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment