Skip to content

Commit

Permalink
Updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lcferrum committed Sep 6, 2018
1 parent 1cef24c commit 43e35aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions adhosts2privoxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def GetTimestamp(dt):
no_errors = True
exit_code = 1

SafePrint(u"Started on {}".format(GetTimestamp(dt_now)))
SafePrint(u"Started on: {}".format(GetTimestamp(dt_now)))

try:
if len(sys.argv) > 1: config_path = sys.argv[1].decode(local_encoding)
Expand All @@ -186,7 +186,8 @@ def GetTimestamp(dt):
if not os.path.isdir(hosts_dir): raise IOError(errno.ENOENT, "The directory name is invalid", hosts_dir)
os.chdir(hosts_dir)

delayed_write.append(u"# Action file created on {}".format(GetTimestamp(dt_now)))
delayed_write.append(u"# Action file created on:")
delayed_write.append(u"# {}".format(GetTimestamp(dt_now)))
delayed_write.append(u"# Included hosts files:")

for section in config.sections():
Expand Down

0 comments on commit 43e35aa

Please sign in to comment.