diff --git a/tnc/daemon.py b/tnc/daemon.py index fb799739..161bbdc9 100755 --- a/tnc/daemon.py +++ b/tnc/daemon.py @@ -55,6 +55,7 @@ class DAEMON: Daemon class """ + log = structlog.get_logger("DAEMON") def __init__(self): diff --git a/tnc/main.py b/tnc/main.py index 642713ea..4eec6e86 100755 --- a/tnc/main.py +++ b/tnc/main.py @@ -25,6 +25,7 @@ import structlog log = structlog.get_logger(__file__) + def signal_handler(sig, frame): """ a signal handler, which closes the network/socket when closing the application