diff --git a/panoply/__init__.py b/panoply/__init__.py index 68f9504..cb89286 100644 --- a/panoply/__init__.py +++ b/panoply/__init__.py @@ -1,5 +1,4 @@ import logging - from sys import stdout from traceback import print_exception as _print_exception @@ -9,7 +8,6 @@ from .sdk import * from .ssh import SSHTunnel - logging.basicConfig(stream=stdout, format='%(levelname)s: %(message)s') @@ -27,7 +25,7 @@ def custom_excepthook(args, /): # silently ignore SystemExit return - logging.error(f"Caught an exception in thread:") + logging.error("Caught an exception in thread:") _print_exception(args.exc_type, args.exc_value, args.exc_traceback, file=stdout) diff --git a/panoply/resources.py b/panoply/resources.py index eb651ff..f939a64 100644 --- a/panoply/resources.py +++ b/panoply/resources.py @@ -1,4 +1,4 @@ -from typing import Optional, List, TypedDict, Dict +from typing import List, Optional, TypedDict class Field(TypedDict): diff --git a/panoply/sdk.py b/panoply/sdk.py index d9dc250..0f81b74 100644 --- a/panoply/sdk.py +++ b/panoply/sdk.py @@ -1,16 +1,15 @@ import base64 import json +import queue +import threading import time -import urllib.request import urllib.error import urllib.parse -import threading -import queue -import logging +import urllib.request from copy import copy -from .constants import __package_name__, __version__ from . import events +from .constants import __package_name__, __version__ MAXSIZE = 1024 * 250 # 250kib FLUSH_TIMEOUT = 2.0 # 2 seconds