modified: netbox_dns_bridge/__init__.py

modified:   netbox_dns_bridge/catalog_zone_manager.py
modified:   netbox_dns_bridge/dns_server.py
new file:   netbox_dns_bridge/logger.py
modified:   netbox_dns_bridge/management/commands/dns-transfer-endpoint.py
modified:   netbox_dns_bridge/request_handler.py
Clean up logging
This commit is contained in:
sven authored and Sven Luthi committed 2026-04-10 15:08:10 +02:00
1 parent da6a5e09a5
commit 67ccf83b1c
6 files changed
+31 -22

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import logging
PLUGIN_NAME = "dns-bridge"
def get_logger(name: str) -> logging.Logger:
#name = name.replace("_","-").rsplit(".", 1)[-1]
#
#if name.startswith(PLUGIN_NAME):
# return logging.getLogger(name)
#return logging.getLogger(f"{PLUGIN_NAME}.{name}")
return logging.getLogger(f"{PLUGIN_NAME}")