[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 21 Mar 2006 18:32:20 -0000


albertel		Tue Mar 21 13:32:20 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - add in filename of request so have an idea who threw the error
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.315 loncom/interface/loncommon.pm:1.316
--- loncom/interface/loncommon.pm:1.315	Tue Mar 21 11:32:50 2006
+++ loncom/interface/loncommon.pm	Tue Mar 21 13:32:19 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.315 2006/03/21 16:32:50 albertel Exp $
+# $Id: loncommon.pm,v 1.316 2006/03/21 18:32:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3119,20 +3119,24 @@
 
 sub validate_page {
     if (  exists($env{'internal.start_page'})
-	  &&    $env{'internal.start_page'} > 1) {
-	&Apache::lonnet::logthis('start_page called multiple times');
+	  &&     $env{'internal.start_page'} > 1) {
+	&Apache::lonnet::logthis('start_page called multiple times '.
+				 $ENV{'request.filename'});
     }
     if (  exists($env{'internal.end_page'})
-	  &&    $env{'internal.end_page'} > 1) {
-	&Apache::lonnet::logthis('end_page called multiple times');
+	  &&     $env{'internal.end_page'} > 1) {
+	&Apache::lonnet::logthis('end_page called multiple times '.
+				 $env{'request.filename'});
     }
     if (     exists($env{'internal.start_page'})
 	&& ! exists($env{'internal.end_page'})) {
-	&Apache::lonnet::logthis('start_page called without end_page');
+	&Apache::lonnet::logthis('start_page called without end_page '.
+				 $env{'request.filename'});
     }
     if (   ! exists($env{'internal.start_page'})
 	&&   exists($env{'internal.end_page'})) {
-	&Apache::lonnet::logthis('end_page called without start_page');
+	&Apache::lonnet::logthis('end_page called without start_page'.
+				 $env{'request.filename'});
     }
 }