X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;h=51ecedea2bb6575c9d58220cba96011e696cd9e4;hb=12eefe496e1a6d18448b3cc36d5732e9d34b873e;hp=eb2f536bd4e96a55d3a1058b3af2419051094931;hpb=abb6a59ebc4be911bb6862cd694576b8db700b7e;p=spider.git diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index eb2f536b..51ecedea 100644 --- a/perl/Route/Node.pm +++ b/perl/Route/Node.pm @@ -128,6 +128,9 @@ sub add_user { my $self = shift; my $ucall = shift; + + confess "Trying to add NULL User call to routing tables" unless $ucall; + $self->_adduser($ucall); $self->{usercount} = scalar @{$self->{users}}; @@ -206,7 +209,7 @@ sub get my $call = shift; $call = shift if ref $call; my $ref = $list{uc $call}; - dbg('routerr', "Failed to get Node $call" ) unless $ref; + dbg("Failed to get Node $call" ) if !$ref && isdbg('routerr'); return $ref; } @@ -259,7 +262,7 @@ sub DESTROY my $pkg = ref $self; my $call = $self->{call} || "Unknown"; - dbg('route', "destroying $pkg with $call"); + dbg("destroying $pkg with $call") if isdbg('routelow'); } #