/[Apache-SVN]/spamassassin/trunk/spamassassin.raw
ViewVC logotype

Diff of /spamassassin/trunk/spamassassin.raw

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/spamassassin.raw	2005/08/17 03:00:08	233110
+++ spamassassin/trunk/spamassassin.raw	2005/08/17 03:09:43	233111
@@ -28,10 +28,6 @@ my $LOCAL_RULES_DIR = '@@LOCAL_RULES_DIR
 use lib '@@INSTALLSITELIB@@';                   # substituted at 'make' time
 
 BEGIN {
-  # redirect __WARN__ and __DIE__
-  $SIG{__WARN__} = sub {
-    log_message("warn", $_[0]);
-  };
   # Locate locally installed SA libraries *without* using FindBin, which
   # generates warnings and causes more trouble than its worth.  We don't
   # need to be too smart about this BTW.
@@ -83,6 +79,14 @@ use Mail::SpamAssassin::ArchiveIterator;
 use Mail::SpamAssassin::Util::Progress;
 use Mail::SpamAssassin::Logger qw(log_message);
 
+BEGIN {
+  # redirect __WARN__ and __DIE__, but NOT until after the
+  # Mail::SpamAssassin::Logger class has been parsed.
+  $SIG{__WARN__} = sub {
+    log_message("warn", $_[0]);
+  };
+};
+
 my %resphash = (
   EX_OK          => 0,     # no problems
   EX_USAGE       => 64,    # command line usage error

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26