Renamed logging_mod.py -> log.py
Updated other files accordingly.
This commit is contained in:
@@ -14,7 +14,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
USE_RIPCORD = False
|
USE_RIPCORD = False
|
||||||
|
|
||||||
from mininet.logging_mod import lg, LEVELS
|
from mininet.log import lg, LEVELS
|
||||||
from mininet.net import Mininet, init
|
from mininet.net import Mininet, init
|
||||||
from mininet.node import KernelSwitch, Host, Controller, ControllerParams, NOX
|
from mininet.node import KernelSwitch, Host, Controller, ControllerParams, NOX
|
||||||
from mininet.node import RemoteController, UserSwitch, OVSKernelSwitch
|
from mininet.node import RemoteController, UserSwitch, OVSKernelSwitch
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class MininetLogger(Logger, object):
|
|||||||
|
|
||||||
Enable each mininet .py file to with one import:
|
Enable each mininet .py file to with one import:
|
||||||
|
|
||||||
from mininet.logging_mod import lg
|
from mininet.log import lg
|
||||||
|
|
||||||
...get a default logger that doesn't require one newline per logging call.
|
...get a default logger that doesn't require one newline per logging call.
|
||||||
|
|
||||||
+1
-1
@@ -52,7 +52,7 @@ from subprocess import call
|
|||||||
import sys
|
import sys
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from mininet.logging_mod import lg
|
from mininet.log import lg
|
||||||
from mininet.node import KernelSwitch, OVSKernelSwitch
|
from mininet.node import KernelSwitch, OVSKernelSwitch
|
||||||
from mininet.util import quietRun, fixLimits
|
from mininet.util import quietRun, fixLimits
|
||||||
from mininet.util import make_veth_pair, move_intf, retry, MOVEINTF_DELAY
|
from mininet.util import make_veth_pair, move_intf, retry, MOVEINTF_DELAY
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ import select
|
|||||||
|
|
||||||
flush = sys.stdout.flush
|
flush = sys.stdout.flush
|
||||||
|
|
||||||
from mininet.logging_mod import lg
|
from mininet.log import lg
|
||||||
from mininet.util import quietRun, macColonHex, ipStr
|
from mininet.util import quietRun, macColonHex, ipStr
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ from resource import setrlimit, RLIMIT_NPROC, RLIMIT_NOFILE
|
|||||||
import select
|
import select
|
||||||
from subprocess import call, check_call, Popen, PIPE, STDOUT
|
from subprocess import call, check_call, Popen, PIPE, STDOUT
|
||||||
|
|
||||||
from mininet.logging_mod import lg
|
from mininet.log import lg
|
||||||
|
|
||||||
|
|
||||||
def run(cmd):
|
def run(cmd):
|
||||||
|
|||||||
Reference in New Issue
Block a user