From: Stephen L Johnson Date: Wed, 26 Feb 2003 15:07:33 +0000 (+0000) Subject: added missing debug and error procedures X-Git-Tag: spong-2_8_0-beta1~44 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0011a33639eb6685f481dcd199cf4c90b4870e82;p=spong.git added missing debug and error procedures --- diff --git a/src/spong-status.pl b/src/spong-status.pl index 8774fd5..402e92e 100755 --- a/src/spong-status.pl +++ b/src/spong-status.pl @@ -3,7 +3,7 @@ # This program can be used to send Status update messages to the Spong Server # from shell scripts or other external programs. # -# $Id: spong-status.pl,v 1.9 2002/06/04 01:10:01 sljohnson Exp $ +# $Id: spong-status.pl,v 1.10 2003/02/26 15:07:33 sljohnson Exp $ use POSIX; use Getopt::Long; @@ -143,7 +143,9 @@ sub load_config_files { # Output functions -sub error { print STDERR scalar localtime,": $_\n"; } +sub debug { Spong::Log::debug($_[0],$_[1]); } +sub error { Spong::Log::error($_[0]); } + # This function initializes the debug and error logging contexts in the # Log module.