From: Andreas Scherbaum Date: Fri, 31 Aug 2012 21:59:06 +0000 (+0200) Subject: - fix error levels X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/%20%22mailto:postgres95%40openlink.co.uk%22?a=commitdiff_plain;h=0fd80b9617d33648f008d6ebf3d0a5c0c0d51eb2;p=docbot.git - fix error levels - somehow the old system from the old docbot is not intuitive, make the new one clear --- diff --git a/db.pm b/db.pm index bdae21b..f95231b 100644 --- a/db.pm +++ b/db.pm @@ -12,11 +12,11 @@ use DBI; use Data::Dumper; -use constant DEBUG2 => 4; -use constant DEBUG => 3; -use constant ERROR => 2; -use constant WARN => 1; -use constant INFO => 0; +use constant DEBUG2 => 5; +use constant DEBUG => 4; +use constant INFO => 3; +use constant WARN => 2; +use constant ERROR => 1; # new() diff --git a/docbot.pl b/docbot.pl index fe39bf7..e71c60b 100755 --- a/docbot.pl +++ b/docbot.pl @@ -60,18 +60,18 @@ import docbot::db; # initialize global variables ###################################################################### -use constant DEBUG2 => 4; -use constant DEBUG => 3; -use constant ERROR => 2; -use constant WARN => 1; -use constant INFO => 0; +use constant DEBUG2 => 5; +use constant DEBUG => 4; +use constant INFO => 3; +use constant WARN => 2; +use constant ERROR => 1; %main::loglevels = ( - 4 => 'DEBUG2', - 3 => 'DEBUG', - 2 => 'ERROR', - 1 => 'WARN', - 0 => 'INFO', + 5 => 'DEBUG2', + 4 => 'DEBUG', + 3 => 'INFO', + 2 => 'WARN', + 1 => 'ERROR', ); $main::loglevel = INFO;