Show
Ignore:
Timestamp:
05/14/08 23:35:55 (19 months ago)
Author:
bchoate
Message:

Cleanup for TheSchwartz logging. Added support for 'leak' switch to help trace object leaks.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/lib/MT/Worker/Publish.pm

    r2332 r2337  
    5959 
    6060        my $priority = $job->priority ? ", priority " . $job->priority : ""; 
    61         $job->debug("MT::Worker::Publish publishing " . $fi->file_path . "$priority"); 
    6261 
    6362        # Important: prevents requeuing! 
     
    8281        } 
    8382 
    84         ## MT::TheSchwartz->debug("Publishing: " . RebuildQueue::Daemon::_summary($fi)); 
    85         MT::TheSchwartz->debug("Publishing file " . $fi->file_path . "..."); 
     83        $job->debug("Publishing " . $fi->file_path . $priority); 
     84 
    8685        my $res = $mt->publisher->rebuild_from_fileinfo($fi); 
    8786        if (defined $res) { 
     
    9695                $job->completed(); 
    9796            } 
    98             # This is way too noisy and clutters the activity log 
    99             # for active sites. 
    100             # $mt->log({ 
    101             #     ($fi->blog_id ? ( blog_id => $fi->blog_id ) : () ), 
    102             #     message => $mt->translate('Background Publishing Done'), 
    103             #     metadata => log_time() . ' ' 
    104             #         . $mt->translate('Published: [_1]', $fi->file_path), 
    105             #     category => "publish", 
    106             #     level => MT::Log::INFO(), 
    107             # }); 
    10897            $rebuilt++; 
    10998        } else {