From 39883aa690b9e05855d0c98ce20071535a959ea7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 28 Feb 2010 16:58:30 -0800 Subject: [PATCH] Eliminate LOG_VERBOSE Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Compiler.pm | 1 - Shorewall/Perl/prog.header | 10 +++++----- Shorewall/Perl/prog.header6 | 10 +++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index 731368a89..706dea0a8 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -225,7 +225,6 @@ sub generate_script_2() { 'TERMINATOR=fatal_error' , qq(DONT_LOAD="@dont_load") , qq(STARTUP_LOG="$config{STARTUP_LOG}") , - "LOG_VERBOSE=$config{LOG_VERBOSITY}" , '' ); diff --git a/Shorewall/Perl/prog.header b/Shorewall/Perl/prog.header index d429eff8f..73248f72a 100644 --- a/Shorewall/Perl/prog.header +++ b/Shorewall/Perl/prog.header @@ -43,7 +43,7 @@ progress_message() # $* = Message echo "${timestamp}$@" fi - if [ $LOG_VERBOSE -gt 1 ]; then + if [ $LOG_VERBOSITY -gt 1 ]; then timestamp="$(date +'%b %_d %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi @@ -59,7 +59,7 @@ progress_message2() # $* = Message echo "${timestamp}$@" fi - if [ $LOG_VERBOSE -gt 0 ]; then + if [ $LOG_VERBOSITY -gt 0 ]; then timestamp="$(date +'%b %_d %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi @@ -75,7 +75,7 @@ progress_message3() # $* = Message echo "${timestamp}$@" fi - if [ $LOG_VERBOSE -ge 0 ]; then + if [ $LOG_VERBOSITY -ge 0 ]; then timestamp="$(date +'%b %_d %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi @@ -1124,7 +1124,7 @@ fatal_error() { echo " ERROR: $@" >&2 - if [ $LOG_VERBOSE -gt 1 ]; then + if [ $LOG_VERBOSITY -gt 1 ]; then timestamp="$(date +'%_b %d %T') " echo "${timestamp} ERROR: $@" >> $STARTUP_LOG fi @@ -1152,7 +1152,7 @@ startup_error() # $* = Error Message ;; esac - if [ $LOG_VERBOSE -gt 1 ]; then + if [ $LOG_VERBOSITY -gt 1 ]; then timestamp="$(date +'%_b %d %T') " case $COMMAND in diff --git a/Shorewall/Perl/prog.header6 b/Shorewall/Perl/prog.header6 index bb7f94132..82a25e51b 100644 --- a/Shorewall/Perl/prog.header6 +++ b/Shorewall/Perl/prog.header6 @@ -43,7 +43,7 @@ progress_message() # $* = Message echo "${timestamp}$@" fi - if [ $LOG_VERBOSE -gt 1 ]; then + if [ $LOG_VERBOSITY -gt 1 ]; then timestamp="$(date +'%b %_d %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi @@ -59,7 +59,7 @@ progress_message2() # $* = Message echo "${timestamp}$@" fi - if [ $LOG_VERBOSE -gt 0 ]; then + if [ $LOG_VERBOSITY -gt 0 ]; then timestamp="$(date +'%b %_d %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi @@ -75,7 +75,7 @@ progress_message3() # $* = Message echo "${timestamp}$@" fi - if [ $LOG_VERBOSE -ge 0 ]; then + if [ $LOG_VERBOSITY -ge 0 ]; then timestamp="$(date +'%b %_d %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi @@ -975,7 +975,7 @@ fatal_error() { echo " ERROR: $@" >&2 - if [ $LOG_VERBOSE -gt 1 ]; then + if [ $LOG_VERBOSITY -gt 1 ]; then timestamp="$(date +'%_b %d %T') " echo "${timestamp} ERROR: $@" >> $STARTUP_LOG fi @@ -1003,7 +1003,7 @@ startup_error() # $* = Error Message ;; esac - if [ $LOG_VERBOSE -gt 1 ]; then + if [ $LOG_VERBOSITY -gt 1 ]; then timestamp="$(date +'%_b %d %T') " case $COMMAND in