diff options
-rwxr-xr-x | src/hourly.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hourly.py b/src/hourly.py index 1fd223d..4c44141 100755 --- a/src/hourly.py +++ b/src/hourly.py @@ -39,7 +39,7 @@ def get_vpn_connections(cursor, hour): ''') return cursor.fetchall() -with open("/var/log/0tdns.log", "w") as logfile: +with open("/var/log/0tdns.log", "a") as logfile: # round down to an hour - this datetime format is one # of the formats accepted by postgres hour = strftime('%Y-%m-%d %H:00', gmtime()) |