Author: spadkins
Date: Fri Nov 9 10:14:16 2007
New Revision: 10213
Modified:
p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm
p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm
Log:
more logging
Modified: p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm
==============================================================================
--- p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm (original)
+++ p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm Fri Nov 9 10:14:16 2007
@@ -1514,10 +1514,6 @@
sub _acquire_resources {
&App::sub_entry if ($App::trace);
my ($self, $entry, $constraints) = @_;
-
- my $context = $self->{context};
- $context->log("NOTE: _acquire_resources called : subrequest_id[" .
$entry->{subrequest_id} . "]\n");
-
my $complies = 1;
my $global_constraints = $self->{global_constraints};
@@ -1602,6 +1598,10 @@
foreach my $c (@$global_constraints) {
$c->[$GCONSTR_COUNTS]{$c->[$GCONSTR_COUNT_ATTRIB]} ++;
}
+
+ my $context = $self->{context};
+ $context->log("NOTE: _acquire_resources : subrequest_id[" .
$entry->{subrequest_id} . "]\n");
+
}
&App::sub_exit($complies) if ($App::trace);
@@ -1639,7 +1639,7 @@
my ($self, $entry, $constraints) = @_;
my $context = $self->{context};
- $context->log("NOTE: _release_resources called : subrequest_id[" .
$entry->{subrequest_id} . "]\n");
+ $context->log("NOTE: _release_resources : subrequest_id[" .
$entry->{subrequest_id} . "]\n");
my $global_constraints = $self->{global_constraints};
if (!$global_constraints || $#$global_constraints == -1) {
@@ -1906,3 +1906,4 @@
+
Modified: p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm
==============================================================================
--- p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm (original)
+++ p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm Fri Nov 9
10:14:16 2007
@@ -709,3 +709,4 @@
1;
+