[Rt-commit] rt branch, 4.2/quiet-internal-formatter-message, created. rt-4.2.10-186-g807c924

Jesse Vincent jesse at bestpractical.com
Mon Mar 16 14:18:07 EDT 2015


The branch, 4.2/quiet-internal-formatter-message has been created
        at  807c924f6a24c2757313c0d145c30ec11b7b1ddf (commit)

- Log -----------------------------------------------------------------
commit 807c924f6a24c2757313c0d145c30ec11b7b1ddf
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sat Mar 7 12:48:17 2015 -0800

    Drop the "internal formatter" message from info to debug.
    
    An informational message added in c40ba502 appears rather frequently
    in normal RT operation (once per commandline script in some cases)
    when RT is run with the default logging level 'info'.
    
    Fixes: I#30760

diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index 4fdae1b..ef618e6 100644
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -1835,7 +1835,7 @@ sub _HTMLFormatter {
     # Always fall back to core, even if it is not listed
     for my $prog (@order) {
         if ($prog eq "core") {
-            RT->Logger->info("Using internal Perl HTML -> text conversion");
+            RT->Logger->debug("Using internal Perl HTML -> text conversion");
             require HTML::FormatText::WithLinks::AndTables;
             $formatter = \&_HTMLFormatText;
         } else {
@@ -1872,7 +1872,7 @@ sub _HTMLFormatter {
                 }
             }
 
-            RT->Logger->info("Using $prog for HTML -> text conversion");
+            RT->Logger->debug("Using $prog for HTML -> text conversion");
             $formatter = sub {
                 my $html = shift;
                 my $text = RT::Util::safe_run_child {

-----------------------------------------------------------------------


More information about the rt-commit mailing list