Update scripts/registrator.py
Some checks failed
CI / test (push) Failing after 10s

This commit is contained in:
2026-02-14 10:25:28 +01:00
parent 6bd14d59f1
commit cc695fe5c5

View File

@@ -17,20 +17,17 @@ def configure_logging():
log_file = log_dir / "registrator.log" log_file = log_dir / "registrator.log"
handler = RotatingFileHandler( handler = RotatingFileHandler(
log_file, str(log_file),
maxBytes=5 * 1024 * 1024, maxBytes=5 * 1024 * 1024,
backupCount=3, backupCount=3,
) )
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
formatter = logging.Formatter(
"%(asctime)s - %(levelname)s - %(message)s"
)
handler.setFormatter(formatter) handler.setFormatter(formatter)
logging.basicConfig( root = logging.getLogger()
level=logging.INFO, root.setLevel(logging.INFO)
handlers=[handler], root.handlers.clear()
root.addHandler(handler)
) )
ip='69.69.69.69' ip='69.69.69.69'