[LON-CAPA-cvs] cvs: loncom / LONCAPA.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 30 May 2006 19:29:48 -0000
albertel Tue May 30 15:29:48 2006 EDT
Modified files:
/loncom LONCAPA.pm
Log:
- style
- removing use of noexistant logthis message being sent trough die
Index: loncom/LONCAPA.pm
diff -u loncom/LONCAPA.pm:1.4 loncom/LONCAPA.pm:1.5
--- loncom/LONCAPA.pm:1.4 Tue May 30 15:26:34 2006
+++ loncom/LONCAPA.pm Tue May 30 15:29:48 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Base routines
#
-# $Id: LONCAPA.pm,v 1.4 2006/05/30 19:26:34 albertel Exp $
+# $Id: LONCAPA.pm,v 1.5 2006/05/30 19:29:48 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -176,11 +176,10 @@
# If this is a namespace for which a history is kept,
# make the history log entry:
if (($namespace !~/^nohist\_/) && (defined($loghead))) {
- my $args = scalar @_;
my $hfh = IO::File->new(">>$file_prefix.hist");
if($hfh) {
- my $now = time;
- print $hfh "$loghead:$now:$what\n";
+ my $now = time();
+ print $hfh ("$loghead:$now:$what\n");
}
$hfh->close;
}
@@ -229,8 +228,7 @@
# Writing needs exclusive lock
if (!&flock_sym(LOCK_EX)) { return undef; }
} else {
- &logthis("Unknown method $how for $file_prefix");
- die();
+ die("Unknown method $how for $file_prefix");
}
# The file is ours!
# If it is archived, un-archive it now