1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

revamp logging

This commit is contained in:
checktheroads
2020-04-14 10:24:20 -07:00
parent 90725ed67f
commit 5f3c516f86
20 changed files with 202 additions and 165 deletions

View File

@@ -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__)