[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.84, Thu May 3 12:28:00 2007 UTC revision 1.87, Mon Jun 11 17:34:16 2007 UTC
# Line 579  Line 579 
579      my $tkey = EmergencyKey();      my $tkey = EmergencyKey();
580      # Add the tracing options.      # Add the tracing options.
581      if (! exists $options->{trace}) {      if (! exists $options->{trace}) {
582          $options->{trace} = ['E', "tracing level (E for emergency tracing)"];          $options->{trace} = ['2', "tracing level (E for emergency tracing)"];
583      }      }
584      $options->{sql} = [0, "turn on SQL tracing"];      $options->{sql} = [0, "turn on SQL tracing"];
585      $options->{help} = [0, "display command-line options"];      $options->{help} = [0, "display command-line options"];
# Line 1264  Line 1264 
1264              if (!$package) {              if (!$package) {
1265                  $category = "main";                  $category = "main";
1266              } else {              } else {
1267                  $category = $package;                  my @cats = split /::/, $package;
1268                    $category = $cats[$#cats];
1269              }              }
1270          }          }
1271          # Save the category name.          # Save the category name.
# Line 1772  Line 1773 
1773  sub Confess {  sub Confess {
1774      # Get the parameters.      # Get the parameters.
1775      my ($message) = @_;      my ($message) = @_;
1776        if (! defined($FIG_Config::no_tool_hdr)) {
1777            # Here we have a tool header. Display its length so that the user can adjust the line numbers.
1778            my @lines = GetFile("$FIG_Config::common_runtime/tool_hdr");
1779            Trace("Tool header has " . scalar(@lines) . " lines.");
1780        }
1781      # Trace the call stack.      # Trace the call stack.
1782      Cluck($message);      Cluck($message);
1783      # Abort the program.      # Abort the program.
# Line 2323  Line 2329 
2329      # Get the parameters.      # Get the parameters.
2330      my ($tkey, $myDest) = @_;      my ($tkey, $myDest) = @_;
2331      # Declare the return variable.      # Declare the return variable.
2332      my $retVal;      my $retVal = $myDest;
2333      # Process according to the destination value.      # Process according to the destination value.
2334      if ($myDest eq 'FILE') {      if ($myDest eq 'FILE') {
2335          $retVal = ">" . EmergencyFileTarget($tkey);          $retVal = ">" . EmergencyFileTarget($tkey);
# Line 3175  Line 3181 
3181      return $retVal;      return $retVal;
3182  }  }
3183    
3184    
3185  1;  1;

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.87

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3