aboutsummaryrefslogtreecommitdiff
path: root/GradeBook.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'GradeBook.tcl')
-rwxr-xr-xGradeBook.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index 43c160c..8135b55 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -46,6 +46,8 @@ set password [::ncgi::cookie password]
set action [::ncgi::value action defaultview]
# end of read cookies
+# get remote IP
+if { [catch {set remote_ip $env(REMOTE_ADDR)} errStat] } { set remote_ip unknown}
# get hostname
if { [catch {set host_name $env(SERVER_NAME)} errStat] } { set request_uri unknown}
# script uri
@@ -71,7 +73,7 @@ dbg [::ncgi::names] msg_level_info
if { $action == "logon" } { set action [ LogMeOn ] }
if { $action == "logoff" } { LogMeOff; set action defaultview }
-dbg "$timestamp user $user_requested DB $coursedbfname" msg_level_log
+dbg "$timestamp user $user_requested DB $coursedbfname from $remote_ip" msg_level_log
::ncgi::header