]> git.etc.gen.nz Git - spong.git/commitdiff
added debug statement for parsing of server spec
authorStephen L Johnson <sjohnson@monsters.org>
Tue, 29 Aug 2000 18:13:33 +0000 (18:13 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Tue, 29 Aug 2000 18:13:33 +0000 (18:13 +0000)
src/lib/Spong/Status.pm

index d37f31b4aa03661e8845376fcde897aa47ff1e6e..978d17881e52ad38666fca034509381d4f3b080c 100755 (executable)
@@ -84,6 +84,8 @@ sub SendMsg {
       my($host, $p ) = split /:/,$server;
       $p = $port if (! $p);               # Default to $port if no port
 
+      main::debug("Status.pm: host $host, port $p",7);
+
       # Set an alarm on this block in case we run into problem talking to
       # the spong server.
       eval 
@@ -99,7 +101,7 @@ sub SendMsg {
                                    );
 
          if ( ! defined $sock ) {
-            die "$@";
+            die "server: $server - $@";
          }
 
          $sock->autoflush(1);