[Bps-public-commit] r16212 - in Pushmi/trunk: Pushmi-Admin/lib/Pushmi/Admin
alexmv at bestpractical.com
alexmv at bestpractical.com
Fri Oct 3 13:40:00 EDT 2008
Author: alexmv
Date: Fri Oct 3 13:39:59 2008
New Revision: 16212
Modified:
Pushmi/trunk/ (props changed)
Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm
Log:
r37960 at kohr-ah: chmrr | 2008-10-03 13:39:52 -0400
* Remove debugging lines
Modified: Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm
==============================================================================
--- Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm (original)
+++ Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm Fri Oct 3 13:39:59 2008
@@ -33,19 +33,16 @@
$replica = Pushmi::Admin::Model::Replica->load($id);
last unless $replica->id;
if ($replica->long_status ne $previous and $previous ne "") {
- print STDERR "@{[$replica->clean_name]}: New status: @{[$replica->long_status]}\n";
Pushmi::Admin::Event::ReplicaStatus->new(
{ id => $id, old => $short, new => $replica->status }
)->publish;
$inactive = 0;
} elsif (++$inactive == 5 and $replica->status ne "loading") {
- print STDERR "@{[$replica->clean_name]}: 5 second inactivity timer\n";
Pushmi::Admin::Event::Inactive->new(
{ id => $id, status => $replica->status }
)->publish;
}
if ($inactive < 60 or $inactive % 60 == 0) {
- print STDERR "@{[$replica->clean_name]}: Heartbeat\n";
Pushmi::Admin::Event::Heartbeat->new(
{ id => $id }
)->publish;
@@ -56,7 +53,6 @@
sleep 1;
}
- print STDERR "@{[$id]} exiting\n";
exit;
}
More information about the Bps-public-commit
mailing list