return;
}
+sub _debug_message {
+ my ($self, @msg) = @_;
+ print {*STDERR} $self->debug_prefix, "[$$] ", @msg, "\n";
+}
+
for my $method (qw{
load_class apply_scheme validate_class
create_instance start_application
before $method => sub {
my ($self, @args) = @_;
my $args = join ', ', @args;
- print $self->debug_prefix, "Calling $method($args)\n";
+ $self->_debug_message("Calling $method($args)");
};
after $method => sub {
my $self = shift;
- print $self->debug_prefix, "Returning from $method\n";
+ $self->_debug_message("Returning from $method");
};
}