--- loncom/publisher/loncfile.pm 2005/08/26 19:44:16 1.72 +++ loncom/publisher/loncfile.pm 2005/11/08 17:58:35 1.73 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.72 2005/08/26 19:44:16 albertel Exp $ +# $Id: loncfile.pm,v 1.73 2005/11/08 17:58:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -69,7 +69,6 @@ use File::Copy; use HTML::Entities(); use Apache::Constants qw(:common :http :methods); use Apache::loncacc; -use Apache::Log (); use Apache::lonnet; use Apache::loncommon(); use Apache::lonlocal; @@ -101,16 +100,9 @@ my $r; # Needs to be global for some =cut sub Debug { - - # Marshall the parameters. - - my $r = shift; - my $log = $r->log; - my $message = shift; - # Put out the indicated message butonly if DEBUG is true. - if ($DEBUG) { + my ($r,$message) = @_; $r->log_reason($message); } }