From 5c16ae2ab77719ef9175cf56591dd36a56afa293 Mon Sep 17 00:00:00 2001 From: Guillaume Wuip <guillaume@wuips.com> Date: Sat, 20 Jan 2018 23:44:15 +0100 Subject: [PATCH] Print time and session --- gandi-ddns.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gandi-ddns.py b/gandi-ddns.py index 12e0c34..e71ae3b 100755 --- a/gandi-ddns.py +++ b/gandi-ddns.py @@ -4,6 +4,7 @@ import os import requests import json import ipaddress +from datetime import datetime config_file = "config.txt" @@ -62,6 +63,7 @@ def main(): sys.exit("Please fill in the 'config.txt' file.") for section in config.sections(): + print('%s - section %s' % (str(datetime.now()), section)) #Retrieve API key apikey = config.get(section, 'apikey') -- GitLab