[Bio] / FigKernelPackages / Tracer.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/Tracer.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.126, Wed Dec 16 20:00:53 2009 UTC revision 1.128, Wed Dec 16 20:57:35 2009 UTC
# Line 1122  Line 1122 
1122      my $dest = $options{destType} || "WARN";      my $dest = $options{destType} || "WARN";
1123      # Check for emergency tracing.      # Check for emergency tracing.
1124      my $tkey = EmergencyKey($parameter);      my $tkey = EmergencyKey($parameter);
     warn "Tracing key is $tkey.\n"; ##HACK  
1125      my $emergencyFile = EmergencyFileName($tkey);      my $emergencyFile = EmergencyFileName($tkey);
1126      if (-e $emergencyFile) {      if (-e $emergencyFile) {
1127          # We have the file. Read in the data.          # We have the file. Read in the data.
# Line 1150  Line 1149 
1149          }          }
1150      }      }
1151      # Convert the destination to a real tracing destination.      # Convert the destination to a real tracing destination.
     warn "Tracing destination is $dest.\n"; ##HACK  
1152      $dest = EmergencyTracingDest($tkey, $dest);      $dest = EmergencyTracingDest($tkey, $dest);
1153      # Setup the tracing we've determined from all the stuff above.      # Setup the tracing we've determined from all the stuff above.
     warn "TSetup is \"$tracing\", \"$dest\".\n"; ##HACK  
1154      TSetup($tracing, $dest);      TSetup($tracing, $dest);
1155      # Check to see if we're a web script.      # Check to see if we're a web script.
1156      if (defined $SavedCGI) {      if (defined $SavedCGI) {
# Line 1351  Line 1348 
1348      # Declare the return variable.      # Declare the return variable.
1349      my $retVal;      my $retVal;
1350      # Determine the parameter type.      # Determine the parameter type.
1351      if (! defined $parameter || defined($ENV{TRACING})) {      if (! defined $parameter) {
1352          # Here we're supposed to check the environment. If that fails, we          # Here we're supposed to check the environment. If that fails, we
1353          # get the effective login ID.          # get the effective login ID.
1354          $retVal = $ENV{TRACING} || scalar getpwuid($<);          $retVal = $ENV{TRACING} || scalar getpwuid($<);

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.128

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3