From 38aa8e28b85a716c45dc23c7039067069ff75a5d Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 18 Dec 2012 10:01:19 -0500 Subject: added log file as config variable --- GradeBook_lib.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'GradeBook_lib.tcl') diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index 885af1b..4876c82 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -20,6 +20,7 @@ array set GradebookServerConfig [list \ passwords_db_file "./passwd.db" \ html_access_stats_url "/~evmik/grade_book_stats/" \ verbosity_level 100 \ + log_file "log" \ ] # ######################################################################## @@ -323,7 +324,7 @@ proc dbg {msg {category msg_level_critical}} { } if { $level <= $GradebookServerConfig(verbosity_level) } { - set fid [open log a+] + set fid [open $GradebookServerConfig(log_file) a+] puts $fid "$msg_header $msg" close $fid } -- cgit v1.2.3