aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2016-10-19 15:04:19 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2016-10-19 15:20:37 -0400
commit76f9faa0329addf544f64b814ef20b5895a796ba (patch)
treefb02cbe035801fa4c6a62ae674128a6352cb5ca5
parentb29ab6facf73d844c1cfbb40f7a25f359fffba67 (diff)
downloadGradeBook-76f9faa0329addf544f64b814ef20b5895a796ba.tar.gz
GradeBook-76f9faa0329addf544f64b814ef20b5895a796ba.zip
grave error is reported via common log facility
-rwxr-xr-xGradeBook.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index 8e00c22..16baac9 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -128,12 +128,12 @@ dbg $permission_list msg_level_info
htmlFooter $permission_list
puts "</body>"
-logEntryToLogFile
###################### Main script ends #################################
} errStat ]
if { $err } {
- rawTextToLogFile "Error: $errStat"
+ addLogEntry Error "$errStat" msg_level_critical
htmlErrorMsg "Something went wrong, please, ask admin to have a look at logs around [timestamp]"
}
+logEntryToLogFile
# vim: ts=2 sw=2 foldmethod=indent: