X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=blootbot%2Fsrc%2Flogger.pl;h=0eaf0a8491239a8d144e32b66d50ddbccc22878e;hb=431db5d737dbc45e83aa3c96628b7568fe5f3d6a;hp=e6c530ac8b86b75e89b76fa63b32e330130b1292;hpb=2c940173ae13900252ab03f0ec611699ec71fc04;p=infobot.git diff --git a/blootbot/src/logger.pl b/blootbot/src/logger.pl index e6c530a..0eaf0a8 100644 --- a/blootbot/src/logger.pl +++ b/blootbot/src/logger.pl @@ -43,7 +43,7 @@ use vars qw($b_black $_black $b_red $_red $b_green $_green $b_yellow $_yellow $b_blue $_blue $b_magenta $_magenta $b_cyan $_cyan $b_white $_white $_reset $_bold $ob $b); -$b_black = cl('bold black'); $_black = cl('black'); +$b_black = cl('bold black'); $_black = cl('black'); $b_red = cl('bold red'); $_red = cl('red'); $b_green = cl('bold green'); $_green = cl('green'); $b_yellow = cl('bold yellow'); $_yellow = cl('yellow'); @@ -93,7 +93,7 @@ sub openLog { if (&IsParam("logType") and $param{'logType'} =~ /DAILY/i) { my ($day,$month,$year) = (gmtime time())[3,4,5]; $logDate = sprintf("%04d%02d%02d",$year+1900,$month+1,$day); - $file{log} .= "-".$logDate; + $file{log} .= $logDate; } if (open(LOG, ">>$file{log}")) { @@ -117,7 +117,7 @@ sub closeLog { # Usage: &compress($file); sub compress { my ($file) = @_; - my @compress = ("/usr/bin/bzip2","/bin/gzip"); + my @compress = ('/usr/bin/bzip2','/bin/bzip2','/bin/gzip'); my $okay = 0; if (! -f $file) { @@ -223,7 +223,7 @@ sub status { for ($input) { s/\n+$//; - s/\002|037//g; # bold,video,underline => remove. + s/\002|\037//g; # bold,video,underline => remove. } # does this work?