[Rt-commit] rt branch, 4.2/serialize-ticket, updated. rt-4.2.13-124-gaefb477

Shawn Moore shawn at bestpractical.com
Mon Mar 27 16:01:42 EDT 2017


The branch, 4.2/serialize-ticket has been updated
       via  aefb477bd68d1b0b5319b67d4881712fa854347c (commit)
      from  912eb9318c393bbe2c7f7e5b858b9b55650df2ce (commit)

Summary of changes:
 lib/RT/Migrate/Importer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit aefb477bd68d1b0b5319b67d4881712fa854347c
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Mon Mar 27 20:00:22 2017 +0000

    Turn down loglevel for original ID creation
    
    Creating this CF is not at all a "warning" level concern, as it's
    exactly what the user asked RT to do

diff --git a/lib/RT/Migrate/Importer.pm b/lib/RT/Migrate/Importer.pm
index 41bf57d..718b165 100644
--- a/lib/RT/Migrate/Importer.pm
+++ b/lib/RT/Migrate/Importer.pm
@@ -152,7 +152,7 @@ sub InitStream {
         my $cf = RT::CustomField->new( RT->SystemUser );
         $cf->LoadByName( Name => $self->{OriginalId}, LookupType => RT::Ticket->CustomFieldLookupType, ObjectId => 0 );
         unless ($cf->Id) {
-            warn "Failed to find global CF named $self->{OriginalId} -- creating one";
+            RT->Logger->info("Failed to find global CF named $self->{OriginalId} -- creating one");
             $cf->Create(
                 Queue => 0,
                 Name  => $self->{OriginalId},

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


More information about the rt-commit mailing list