Changeset 248
- Timestamp:
- 06/08/09 00:11:02 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Log.pm
r228 r248 13 13 LA_CRIT 14 14 LA_ERR 15 LA_ERROR 15 16 LA_WARNING 16 17 LA_NOTICE … … 69 70 syslog($level, $msg, @args) unless($level >= LA_DEBUG); 70 71 } 71 if ($log_method{console} && $level <= $log_method{console}) { 72 if ($ENV{'LA_DEBUG'}) { 73 my @caller = caller; 74 my $debug = ($level == LA_DEBUG) ? "$caller[0]:$caller[2] " : ''; 75 warn sprintf("$debug$msg", @args) . "\n"; 76 } elsif ($log_method{console} && $level <= $log_method{console}) { 72 77 if ($level >= LA_NOTICE && $level < LA_DEBUG) { 73 78 printf("$msg\n", @args);
Note: See TracChangeset
for help on using the changeset viewer.