[Rt-commit] rt branch, 4.4.0-releng, updated. rt-4.4.0rc2-3-gfe8587f

Shawn Moore shawn at bestpractical.com
Fri Dec 4 10:43:09 EST 2015


The branch, 4.4.0-releng has been updated
       via  fe8587f74f7ee8264a1c3742f1ff9b54ab7c675d (commit)
      from  71824d2fb35b63221282d9a5cfb37912bbf04a5a (commit)

Summary of changes:
 etc/upgrade/4.3.1/content  | 6 +++++-
 etc/upgrade/4.3.11/content | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit fe8587f74f7ee8264a1c3742f1ff9b54ab7c675d
Author: Christian Loos <cloos at netcologne.de>
Date:   Fri Dec 4 12:00:53 2015 +0100

    silence upgrade messages
    
    For 4.3.1 it don't makes sense to display a message for each custom
    field during the upgrade (unless you turn on debug logging).
    
    For 4.3.11 this message should only be relevant if you want to debug the
    upgrade, but not for the normal user.

diff --git a/etc/upgrade/4.3.1/content b/etc/upgrade/4.3.1/content
index 9c46681..daac136 100644
--- a/etc/upgrade/4.3.1/content
+++ b/etc/upgrade/4.3.1/content
@@ -9,7 +9,11 @@ our @Initial = (
         $cfs->Limit( FIELD => 'EntryHint', VALUE => 'NULL', OPERATOR => 'IS' );
         while ( my $cf = $cfs->Next ) {
             my ($ret, $msg) = $cf->SetEntryHint($cf->FriendlyType);
-            RT->Logger->warning("Update Custom Field EntryHint for CF." . $cf->Id . " $msg");
+            if ($ret) {
+                RT->Logger->debug("Update Custom Field EntryHint for CF." . $cf->Id . " $msg");
+            } else {
+                RT->Logger->error("Failed to update Custom Field EntryHint for CF." . $cf->Id . " $msg");
+            }
         }
         return 1;
     },
diff --git a/etc/upgrade/4.3.11/content b/etc/upgrade/4.3.11/content
index 8502f00..26af3c6 100644
--- a/etc/upgrade/4.3.11/content
+++ b/etc/upgrade/4.3.11/content
@@ -3,7 +3,7 @@ use warnings;
 
 our @Initial = (
     sub {
-        $RT::Logger->info("Going to migrate dashboard subscriptions");
+        $RT::Logger->debug("Going to migrate dashboard subscriptions");
 
         my $attrs = RT::Attributes->new( RT->SystemUser );
         $attrs->Limit( FIELD => 'ObjectType', VALUE => 'RT::User' );

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


More information about the rt-commit mailing list