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

@@ -14,7 +14,8 @@ from starlette.staticfiles import StaticFiles
from starlette.middleware.cors import CORSMiddleware
# Project
from hyperglass.util import log, cpu_count
from hyperglass.log import log
from hyperglass.util import cpu_count
from hyperglass.constants import TRANSPORT_REST, __version__
from hyperglass.api.events import on_startup, on_shutdown
from hyperglass.api.routes import docs, query, queries, routers, import_certificate

View File

@@ -1,6 +1 @@
"""Query & Response Validation Models."""
# Project
from hyperglass.api.models import query, types, rfc8522, response, validators
# flake8: noqa: F401

View File

@@ -7,7 +7,7 @@ import hashlib
from pydantic import BaseModel, StrictStr, validator
# Project
from hyperglass.util import log
from hyperglass.log import log
from hyperglass.exceptions import InputInvalid
from hyperglass.configuration import params, devices
from hyperglass.api.models.types import SupportedQuery

View File

@@ -5,7 +5,8 @@ import re
from ipaddress import ip_network
# Project
from hyperglass.util import log, get_containing_prefix
from hyperglass.log import log
from hyperglass.util import get_containing_prefix
from hyperglass.exceptions import InputInvalid, InputNotAllowed
from hyperglass.configuration import params

View File

@@ -10,7 +10,8 @@ from starlette.requests import Request
from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html
# Project
from hyperglass.util import log, clean_name, import_public_key
from hyperglass.log import log
from hyperglass.util import clean_name, import_public_key
from hyperglass.cache import Cache
from hyperglass.encode import jwt_decode
from hyperglass.exceptions import HyperglassError