diff --git a/tperimeter.py b/tperimeter.py index 390eeb7..e8e364d 100644 --- a/tperimeter.py +++ b/tperimeter.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tperimeter.py" -RCSID = "$Id: tperimeter.py,v 1.103 2006/04/29 07:52:44 tundra Exp $" +RCSID = "$Id: tperimeter.py,v 1.104 2006/04/30 07:58:10 tundra Exp $" import os, re, sys @@ -16,6 +16,7 @@ Basedir = "/www/cgi-bin/tperimeter/requests/" # Base directory to store requests IPQuad = r"(\d{1,3}\.){3}\d{1,3}$" # Regex for IP Quads +Logfile = "/var/log/tperimiter.log" # Logging directory ##### @@ -122,3 +123,7 @@ f=open(reqfil, "w") f.close() +# Write the log entry + +f=open(Logfile, "a") +f.write("%s Requested Access To %s From %s\n" % (requestor, service, address))