added callsign to logging
authorminima <minima>
Mon, 6 Nov 2000 14:25:05 +0000 (14:25 +0000)
committerminima <minima>
Mon, 6 Nov 2000 14:25:05 +0000 (14:25 +0000)
cmd/show/call.pl
cmd/show/qrz.pl

index 28c409f06273d8a6c53418e386bfe38771f4f523..d45f756c597eaa74f61054a9e8cac5cd1423eea5 100644 (file)
@@ -8,6 +8,7 @@
 my ($self, $line) = @_;
 my @list = split /\s+/, $line;               # generate a list of callsigns
 my $l;
+my $call = $self->call;
 my @out;
 
 return (1, "SHOW/CALL <callsign>, e.g. SH/CALL g1tlh") unless @list;
@@ -23,7 +24,7 @@ foreach $l (@list) {
                         Timeout  =>  5);
        if ($t) {
                $t->print(uc $l);
-               Log('call', "show/call $l");
+               Log('call', "$call: show/call $l");
                while (my $result = $t->getline) {
                        push @out,$result;
                }
index 51a63c41afd3521fbb1e7291dde0a2066589ff01..45363143c6824c0b672dffaac6bd3cc43b041005 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Query the PineKnot Database server for a callsign
+# Query the QRZ Database server for a callsign
 #
 # from an idea by Steve Franke K9AN and information from Angel EA7WA
 #
@@ -8,6 +8,7 @@
 my ($self, $line) = @_;
 my @list = split /\s+/, $line;               # generate a list of callsigns
 my $l;
+my $call = $self->call;
 my @out;
 
 return (1, "SHOW/QRZ <callsign>, e.g. SH/QRZ g1tlh") unless @list;
@@ -23,7 +24,7 @@ foreach $l (@list) {
                         Timeout  =>  5);
        if ($t) {
                $t->print("GET /database?callsign=$l HTTP/1.0\n\n");
-               Log('call', "show/qrz $l");
+               Log('call', "$call: show/qrz $l");
                my $state = "call";
                while (my $result = $t->getline) {
 #                      print "$state: $result";