--- loncom/LondConnection.pm 2004/06/17 11:02:25 1.33 +++ loncom/LondConnection.pm 2004/09/21 10:51:42 1.35 @@ -1,7 +1,7 @@ # This module defines and implements a class that represents # a connection to a lond daemon. # -# $Id: LondConnection.pm,v 1.33 2004/06/17 11:02:25 foxr Exp $ +# $Id: LondConnection.pm,v 1.35 2004/09/21 10:51:42 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -154,14 +154,17 @@ Dump the internal state of the object: F sub Dump { my $self = shift; my $level = shift; + my $now = time; + my $local = localtime($now); if ($level <= $DebugLevel) { return; } + my $key; my $value; - print STDERR "Dumping LondConnectionObject:\n"; + print STDERR "[ $local ] Dumping LondConnectionObject:\n"; while(($key, $value) = each %$self) { print STDERR "$key -> $value\n"; } @@ -552,7 +555,7 @@ sub Readable { my $answer = $self->{TransactionReply}; if($answer =~ /^enc\:/) { $answer = $self->Decrypt($answer); - $self->{TransactionReply} = $answer; + $self->{TransactionReply} = "$answer\n"; } # finish the transaction @@ -950,6 +953,7 @@ sub Decrypt { # $length tells us the actual length of the decrypted string: $decrypted = substr($decrypted, 0, $length); + Debug(9, "Decrypted $EncryptedString to $decrypted"); return $decrypted;