[Rt-commit] r8632 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Sat Aug 18 03:20:34 EDT 2007


Author: ruz
Date: Sat Aug 18 03:20:32 2007
New Revision: 8632

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/EmailParser.pm

Log:
* log error only if there is an error

Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/EmailParser.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/EmailParser.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/EmailParser.pm	Sat Aug 18 03:20:32 2007
@@ -250,7 +250,7 @@
     { 
         local $@;
         eval { $decoder->decode($source, $destination) };
-        $RT::Logger->error($@);
+        $RT::Logger->error($@) if $@;
     }
     $source->close or die "can't close: $!";
     $destination->close or die "can't close: $!";


More information about the Rt-commit mailing list