Fixed a hidden issue.

This commit is contained in:
Elijah Perrault committed 2011-01-17 00:17:30 -07:00
1 parent 6906cb3a49
commit e46279e914
1 file changed
+3 -3
+3 -3
View File
@@ -9,7 +9,7 @@ use Exporter;
package API::Std;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(conf_get trans);
our @EXPORT_OK = qw(conf_get trans err);
my %LANGE;
@@ -101,11 +101,11 @@ sub err
}
# Level 1: Print to screen.
if ($lvl => 1) {
if ($lvl >= 1) {
API::Log::println("ERROR: $msg");
}
# Level 2: Log to file.
if ($lvl => 2) {
if ($lvl >= 2) {
API::Log::alog("ERROR: $msg");
}