--- loncom/publisher/lonupload.pm 2005/04/07 06:56:27 1.29 +++ loncom/publisher/lonupload.pm 2005/11/08 17:58:35 1.30 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Handler to upload files into construction space # -# $Id: lonupload.pm,v 1.29 2005/04/07 06:56:27 albertel Exp $ +# $Id: lonupload.pm,v 1.30 2005/11/08 17:58:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,7 +37,6 @@ use File::Basename; use Apache::Constants qw(:common :http :methods); use Apache::loncacc; use Apache::loncommon(); -use Apache::Log(); use Apache::lonnet; use HTML::Entities(); use Apache::lonlocal; @@ -46,17 +45,10 @@ use Apache::lonnet; my $DEBUG=0; sub Debug { - - # Marshall the parameters. - - my $r = shift; - my $log = $r->log; - my $message = shift; - - # Put out the indicated message butonly if DEBUG is false. - + # Put out the indicated message but only if DEBUG is true. if ($DEBUG) { - $log->debug($message); + my ($r,$message) = @_; + $r->log_reason($message); } }