strato-ddns/src/ddns_update.py

16 lines
317 B
Python
Raw Normal View History

2020-05-22 14:28:09 +00:00
#!/usr/bin/python3
from time import sleep
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger("ddns updater")
if __name__ == "__main__":
log.info("starting...")
sequence = 1
while True:
log.debug(f"update sequence {sequence}")
sequence += 1
sleep(5)