--- loncom/LondConnection.pm 2005/02/06 07:39:49 1.36 +++ loncom/LondConnection.pm 2006/01/26 21:34:25 1.38 @@ -1,7 +1,7 @@ # This module defines and implements a class that represents # a connection to a lond daemon. # -# $Id: LondConnection.pm,v 1.36 2005/02/06 07:39:49 albertel Exp $ +# $Id: LondConnection.pm,v 1.38 2006/01/26 21:34:25 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -157,7 +157,7 @@ sub Dump { my $now = time; my $local = localtime($now); - if ($level <= $DebugLevel) { + if ($level >= $DebugLevel) { return; } @@ -165,6 +165,7 @@ sub Dump { my $key; my $value; print STDERR "[ $local ] Dumping LondConnectionObject:\n"; + print STDERR join(':',caller(1))."\n"; while(($key, $value) = each %$self) { print STDERR "$key -> $value\n"; } @@ -507,7 +508,8 @@ sub Readable { return 0; } elsif ($self->{State} eq "ReadingVersionString") { - $self->{LondVersion} = chomp($self->{TransactionReply}); + chomp($self->{TransactionReply}); + $self->{LondVersion} = $self->{TransactionReply}; $self->Transition("SetHost"); $self->{InformReadable} = 0; $self->{InformWritable} = 1;