mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Replace root logger calls with module-specific loggers
This commit is contained in:
+3
-1
@@ -10,6 +10,8 @@ from core.call_lookup_helper import get_call_info
|
||||
from core.sig_lookup_helper import populate_missing_sig_ref_info
|
||||
from core.utils import get_flag_for_dxcc
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
class Alert:
|
||||
@@ -128,7 +130,7 @@ class Alert:
|
||||
self.dx_names = list(map(lambda c: get_call_info(c, credentials).name, self.dx_calls))
|
||||
|
||||
except Exception:
|
||||
logging.exception("Exception while inferring missing data from spot")
|
||||
logger.exception("Exception while inferring missing data from spot")
|
||||
|
||||
def to_json(self):
|
||||
"""JSON serialise"""
|
||||
|
||||
Reference in New Issue
Block a user