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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Fri, 25 Apr 2003 18:54:36 -0000


bowersj2		Fri Apr 25 14:54:36 2003 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Replace the logging that occurs if the metadata call returns multiple 
  instances of the same part, so we can see if this ever happens again.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.182 loncom/interface/lonnavmaps.pm:1.183
--- loncom/interface/lonnavmaps.pm:1.182	Fri Apr 25 13:02:26 2003
+++ loncom/interface/lonnavmaps.pm	Fri Apr 25 14:54:36 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.182 2003/04/25 17:02:26 bowersj2 Exp $
+# $Id: lonnavmaps.pm,v 1.183 2003/04/25 18:54:36 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3091,10 +3091,10 @@
         foreach (split(/\,/,$metadata)) {
             if ($_ =~ /^part_(.*)$/) {
                 my $part = $1;
-                # This floods the logs
-                #if (defined($parts{$part})) {
-                #    Apache::lonnet::logthis("$part multiply defined in metadata for " . $self->symb());
-                #  }
+                # This floods the logs if it blows up
+                if (defined($parts{$part})) {
+                    Apache::lonnet::logthis("$part multiply defined in metadata for " . $self->symb());
+                  }
 
                 # check to see if part is turned off.