From 0011a33639eb6685f481dcd199cf4c90b4870e82 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Wed, 26 Feb 2003 15:07:33 +0000 Subject: [PATCH] added missing debug and error procedures --- src/spong-status.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. -- 2.30.2