Update update_ddns.py
This commit is contained in:
parent
0325c92fb8
commit
f94c5fa921
|
|
@ -6,14 +6,14 @@ import sys
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
# --- KONFIGURACJA ---
|
# --- CONF ---
|
||||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
CONFIG_FILE = os.path.join(BASE_DIR, "config.json")
|
CONFIG_FILE = os.path.join(BASE_DIR, "config.json")
|
||||||
DOMAINS_FILE = os.path.join(BASE_DIR, "domains.txt")
|
DOMAINS_FILE = os.path.join(BASE_DIR, "domains.txt")
|
||||||
LOG_FILE = "/var/log/ionos-ddns.log"
|
LOG_FILE = "/var/log/ionos-ddns.log"
|
||||||
INTERVAL = 600 # Czas w sekundach (10 minut)
|
INTERVAL = 600 # TIME IN SEC (10 minut)
|
||||||
|
|
||||||
# --- LOGOWANIE ---
|
# --- LOG ---
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
format='%(asctime)s [%(levelname)s] %(message)s',
|
format='%(asctime)s [%(levelname)s] %(message)s',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user