diff --git a/CHANGELOG.md b/CHANGELOG.md index c70dc4f..47b76a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,8 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#135](https://github.com/checktheroads/hyperglass/issues/135): Fix an issue where Juniper indirect next-hops were empty. ### Changed -- Upgraded Scrapli to 2021.1.30 -- Upgraded UI dependencies +- Updated major Python dependencies (FastAPI, Scrapli, Netmiko, Pydantic, Uvicorn, Gunicorn, etc.) +- Updated UI dependencies + +### Added +- The driver for devices can now be overridden with the `driver` parameter. # 1.0.0-beta.81 - 2021-04-10 diff --git a/hyperglass/api/routes.py b/hyperglass/api/routes.py index a036814..9f5b41b 100644 --- a/hyperglass/api/routes.py +++ b/hyperglass/api/routes.py @@ -176,6 +176,9 @@ async def import_certificate(encoded_request: EncodedRequest): """Import a certificate from hyperglass-agent.""" # Try to match the requested device name with configured devices + log.debug( + "Attempting certificate import for device '{}'", devices[encoded_request.device] + ) try: matched_device = devices[encoded_request.device] except AttributeError: diff --git a/hyperglass/cli/commands.py b/hyperglass/cli/commands.py index 8bc5006..dfdbd4c 100644 --- a/hyperglass/cli/commands.py +++ b/hyperglass/cli/commands.py @@ -124,9 +124,6 @@ def start(build, direct, workers): # noqa: C901 warning(str(err)) error("Stopping hyperglass due to keyboard interrupt.") - except BaseException as err: - error(str(err)) - @hg.command( "secret", diff --git a/hyperglass/external/_base.py b/hyperglass/external/_base.py index be867d6..b9d368e 100644 --- a/hyperglass/external/_base.py +++ b/hyperglass/external/_base.py @@ -9,7 +9,7 @@ from socket import gaierror # Third Party import httpx -from httpx.status_codes import StatusCode +from httpx import StatusCode # Project from hyperglass.log import log diff --git a/hyperglass/log.py b/hyperglass/log.py index f0eec59..8791a2e 100644 --- a/hyperglass/log.py +++ b/hyperglass/log.py @@ -16,13 +16,13 @@ _FMT = ( _DATE_FMT = "%Y%m%d %H:%M:%S" _FMT_BASIC = "{message}" _LOG_LEVELS = [ - {"name": "TRACE", "no": 5, "color": ""}, - {"name": "DEBUG", "no": 10, "color": ""}, - {"name": "INFO", "no": 20, "color": ""}, - {"name": "SUCCESS", "no": 25, "color": ""}, - {"name": "WARNING", "no": 30, "color": ""}, - {"name": "ERROR", "no": 40, "color": ""}, - {"name": "CRITICAL", "no": 50, "color": ""}, + {"name": "TRACE", "color": ""}, + {"name": "DEBUG", "color": ""}, + {"name": "INFO", "color": ""}, + {"name": "SUCCESS", "color": ""}, + {"name": "WARNING", "color": ""}, + {"name": "ERROR", "color": ""}, + {"name": "CRITICAL", "color": ""}, ]