[Bps-public-commit] SD branch, master, updated. aad100ca4c96e0c91a6370f2fd34aa4ddf822b97

jesse jesse at bestpractical.com
Thu Jun 4 09:40:11 EDT 2009


The branch, master has been updated
       via  aad100ca4c96e0c91a6370f2fd34aa4ddf822b97 (commit)
       via  49037ac8fab216783e01d8a52146e7c71170ee77 (commit)
      from  ae4d1d67bcce1679ef251ccc569695d97c195607 (commit)

Summary of changes:
 lib/App/SD/ForeignReplica/PullEncoder.pm |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit 49037ac8fab216783e01d8a52146e7c71170ee77
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Jun 4 09:39:53 2009 -0400

    Quiet some logging down to log_debug

diff --git a/lib/App/SD/ForeignReplica/PullEncoder.pm b/lib/App/SD/ForeignReplica/PullEncoder.pm
index fe5bb75..d142ca9 100644
--- a/lib/App/SD/ForeignReplica/PullEncoder.pm
+++ b/lib/App/SD/ForeignReplica/PullEncoder.pm
@@ -16,7 +16,7 @@ sub run {
     }
 
     my $counter = 0;
-    $self->sync_source->log("Discovering ticket history");
+    $self->sync_source->log_debug("Discovering ticket history");
 
     my ( $last_modified, $last_txn, @changesets );
     my $previously_modified = App::SD::Util::string_to_datetime( $self->sync_source->upstream_last_modified_date );
@@ -27,15 +27,14 @@ sub run {
     for my $ticket (@$tickets) {
         $counter++;
         my $changesets;
-        print $progress->report( "%30b %p Est: %E\r", $counter );
-        $self->sync_source->log( "Fetching $counter of " . scalar @$tickets  . " tickets");
+        print $progress->report( "Fetching ticket history %30b %p Est: %E\r", $counter );
+        $self->sync_source->log_debug( "Fetching $counter of " . scalar @$tickets  . " tickets");
         ( $last_modified, $changesets ) = $self->transcode_ticket( $ticket, $last_modified );
         unshift @changesets, @$changesets;
     }
 
     my $cs_counter = 0;
     for my $changeset (@changesets) {
-        $self->sync_source->log( "Applying changeset " . ++$cs_counter . " of " . scalar @changesets );
         $args{callback}->($changeset);
 
         # We're treating each individual ticket in the foreign system as its own 'replica'
@@ -92,7 +91,7 @@ sub transcode_history {
 
     for my $txn ( sort { $b->{'serial'} <=> $a->{'serial'} } @$transactions ) {
         $last_modified = $txn->{timestamp} if ( !$last_modified || ( $txn->{timestamp} > $last_modified ) );
-        $self->sync_source->log( "$ticket_id Transcoding transaction " . ++$txn_counter . " of " . scalar @$transactions );
+        $self->sync_source->log_debug( "$ticket_id Transcoding transaction " . ++$txn_counter . " of " . scalar @$transactions );
 
         my $changeset = $self->transcode_one_txn( $txn, $initial_state, $final_state );
         next unless $changeset && $changeset->has_changes;

commit aad100ca4c96e0c91a6370f2fd34aa4ddf822b97
Merge: 49037ac... ae4d1d6...
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Jun 4 09:40:05 2009 -0400

    Merge branch 'master' of fsck.com:/git/sd
    
    * 'master' of fsck.com:/git/sd:
      updated_after must get a DateTime object as arg
      we don't need the dirty hack of time_zone stuff for gcode
      use gcode's updated_after api to find ticiets
      add blocked_on when pushing for gcode


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



More information about the Bps-public-commit mailing list