mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
revamp logging
This commit is contained in:
@@ -47,8 +47,7 @@ from binascii import hexlify
|
||||
import paramiko
|
||||
|
||||
# Project
|
||||
from hyperglass.util import log
|
||||
from hyperglass.constants import LOG_FMT
|
||||
from hyperglass.log import log
|
||||
from hyperglass.configuration import params
|
||||
|
||||
if params.debug:
|
||||
@@ -83,12 +82,6 @@ SSH_CONFIG_FILE = os.path.join(DEFAULT_SSH_DIRECTORY, "config")
|
||||
########################
|
||||
|
||||
|
||||
class DefaultHandlers:
|
||||
sink = sys.stdout
|
||||
format = LOG_FMT
|
||||
level = "INFO"
|
||||
|
||||
|
||||
def check_host(host):
|
||||
assert isinstance(host, str), "IP is not a string ({0})".format(type(host).__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user