From e0fc8089806044481f29d71e21566aabb259ad42 Mon Sep 17 00:00:00 2001 From: Devin Roark Date: Sun, 25 Feb 2024 00:35:59 -0500 Subject: [PATCH] fix: ngrok logging does not use the shared logger module (#5570) --- extensions/ngrok/script.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/ngrok/script.py b/extensions/ngrok/script.py index 46f39bd3..7bfb9f6e 100644 --- a/extensions/ngrok/script.py +++ b/extensions/ngrok/script.py @@ -8,7 +8,6 @@ # See this example for full list of options: https://github.com/ngrok/ngrok-py/blob/main/examples/ngrok-connect-full.py # or the README.md in this directory. -import logging from modules import shared # Pick up host/port command line arguments @@ -31,6 +30,6 @@ def ui(): try: import ngrok tunnel = ngrok.connect(**options) - logging.info(f"Ingress established at: {tunnel.url()}") + shared.logger.info(f"Ingress established at: {tunnel.url()}") except ModuleNotFoundError: - logging.error("===> ngrok library not found, please run `pip install -r extensions/ngrok/requirements.txt`") + shared.logger.error("===> ngrok library not found, please run `pip install -r extensions/ngrok/requirements.txt`")