refactored redunant perl2JSON call
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 21 Nov 2006 21:51:49 +0000 (21:51 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 21 Nov 2006 21:51:49 +0000 (21:51 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@795 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/AppSession.pm

index e4435b1..0598f84 100644 (file)
@@ -528,13 +528,13 @@ sub send {
                }
 
        } 
-       $logger->debug( "AppSession sending doc: " . JSON->perl2JSON(\@doc), INTERNAL );
-
+       my $json = JSON->perl2JSON(\@doc);
+       $logger->internal("AppSession sending doc: $json");
 
        $self->{peer_handle}->send( 
                                        to     => $self->remote_id,
                                   thread => $self->session_id,
-                                  body   => JSON->perl2JSON(\@doc) );
+                                  body   => $json );
 
        if( $disconnect) {
                $self->state( DISCONNECTED );