From e46279e914bfab5f31173c48c4f020ce43cd7414 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Mon, 17 Jan 2011 00:17:30 -0700 Subject: [PATCH] Fixed a hidden issue. --- src/API/Std.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/API/Std.pm b/src/API/Std.pm index 1bf660b..a413c77 100644 --- a/src/API/Std.pm +++ b/src/API/Std.pm @@ -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"); }