minor bug fixes and removal of some extra stringifications
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Aug 2005 20:07:57 +0000 (20:07 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Aug 2005 20:07:57 +0000 (20:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1637 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/perlmods/OpenSRF/AppSession.pm
OpenSRF/src/perlmods/OpenSRF/Application.pm
OpenSRF/src/perlmods/OpenSRF/DomainObject/oilsMessage.pm
OpenSRF/src/perlmods/OpenSRF/DomainObject/oilsResponse.pm
OpenSRF/src/perlmods/OpenSRF/Transport.pm

index 25f028a..865df94 100644 (file)
@@ -504,18 +504,8 @@ sub send {
                        $connecting++; 
                }
 
-               if( $payload ) {
-                       $logger->debug( "Payload is ".$payload->toString, INTERNAL );
-               }
-       
-       
                my $msg = OpenSRF::DomainObject::oilsMessage->new();
-               $logger->debug( "AppSession after creating oilsMessage $msg", INTERNAL );
-               
                $msg->type($msg_type);
-               $logger->debug( "AppSession after adding type" . $msg->toString(), INTERNAL );
-       
-               #$msg->userAuth($self->client_auth) if ($self->endpoint == CLIENT && $msg_type eq 'CONNECT');
        
                no warnings;
                $msg->threadTrace( $tT || int($self->session_threadTrace) || int($self->last_threadTrace) );
@@ -923,7 +913,6 @@ sub push_queue {
                #return; eventually...
        }
        push @{ $self->{recv_queue} }, $resp;
-       OpenSRF::Utils::Logger->debug( "AppRequest pushed ".$resp->toString(), INTERNAL );
 }
 
 sub failed {
@@ -942,11 +931,7 @@ sub payload { return shift()->{payload}; }
 sub resend {
        my $self = shift;
        return unless ($self and $self->session and !$self->complete);
-       OpenSRF::Utils::Logger->debug(
-               "I'm resending the request for threadTrace ". $self->threadTrace, DEBUG);
-       if($self->payload) {
-               OpenSRF::Utils::Logger->debug($self->payload->toString,INTERNAL);
-       }
+       OpenSRF::Utils::Logger->debug( "I'm resending the request for threadTrace ". $self->threadTrace, DEBUG);
        return $self->session->send('REQUEST', $self->payload, $self->threadTrace );
 }
 
index 54e9b9d..5405815 100644 (file)
@@ -85,8 +85,6 @@ sub handler {
        if( $app ) {
                $log->debug( "Application is $app", DEBUG);
        }
-       $log->debug( "Message is ".$app_msg->toString(1), INTERNAL);
-
 
        if ($session->last_message_type eq 'REQUEST') {
                $log->debug( "We got a REQUEST: ". $app_msg->method, INFO );
@@ -139,7 +137,6 @@ sub handler {
                                my $time = sprintf '%.3f', time() - $start;
                                $log->debug( "Method duration for {$method_name -> ".join(', ', @args)."}:  ". $time, DEBUG );
                                if( defined( $resp ) ) {
-                                       #$log->debug( "Calling respond_complete: ". $resp->toString(), INTERNAL );
                                        $appreq->respond_complete( $resp );
                                } else {
                                        $appreq->status( OpenSRF::DomainObject::oilsConnectStatus->new(
@@ -186,7 +183,6 @@ sub handler {
 
                                        $appreq = $aref->[0];   
                                        if( ref( $response ) ) {
-                                               #$log->debug( "Calling respond_complete: ". $response->toString(), INTERNAL );
                                                $appreq->respond_complete( $response );
                                        } else {
                                                $appreq->status( OpenSRF::DomainObject::oilsConnectStatus->new(
@@ -219,7 +215,6 @@ sub handler {
                return 1;
 
        } else {
-               $log->debug( "Pushing ". $app_msg->toString ." onto queue", INTERNAL );
                $session->push_queue([ $app_msg, $session->last_threadTrace ]);
        }
 
index 320f79a..07feb83 100644 (file)
@@ -246,7 +246,6 @@ sub do_server {
 
 
        $log->debug("Passing to Application::handler()", INFO);
-       $log->debug($self->toString(1), DEBUG);
 
        return 1;
 
@@ -311,9 +310,6 @@ sub do_client {
                $self->payload->throw();
        }
 
-       if( $self->payload ) {
-               $log->debug("Passing to OpenSRF::Application::handler()\n" . $self->payload->toString(1), INTERNAL);
-       }
        $log->debug("oilsMessage passing to Application: " . $self->type." : ".$session->remote_id, INFO );
 
        return 1;
index 5e69691..6009032 100644 (file)
@@ -79,8 +79,8 @@ sub toString {
 }
 
 sub new {
-       my $name = shift;
-       $name = ref($class) || $class;
+       my $class = shift;
+       $class = ref($class) || $class;
 
        my $default_status = eval "\$${class}::status";
        my $default_statusCode = eval "\$${class}::statusCode";
@@ -304,7 +304,7 @@ sub message {
 }
 
 sub new {
-       my $name = shift;
+       my $class = shift;
        return $class->OpenSRF::DomainObject::oilsResponse::new( @_ );
 }
 
index eda097d..21aede8 100644 (file)
@@ -158,11 +158,9 @@ sub handler {
        # up to the message layer for processing.
        for my $msg (@$doc) {
 
-               $logger->transport( 
-                               "Transport::handler()passing to message handler \n".$msg->toString(1), DEBUG );
+               $logger->transport( "Transport::handler()passing to message handler", DEBUG );
 
-               $logger->transport( 
-                               "Transport passing up ".$msg->type." from ".
+               $logger->transport( "Transport passing up ".$msg->type." from ".
                                $app_session->remote_id . " with threadTrace [" . $msg->threadTrace."]", INFO );
 
                next unless (   $msg && UNIVERSAL::isa($msg => 'OpenSRF::DomainObject::oilsMessage'));