Skip to content

Commit

Permalink
slightly different format for debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 18, 2015
1 parent 7043493 commit 9e637b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -216,7 +216,7 @@ sub _remove {
# Connection
return unless delete $self->{connections}{$id};
$self->_maybe_accepting;
warn "-- $id -- $$ (@{[scalar keys %{$self->{connections}}]})\n" if DEBUG;
warn "-- $id <<< $$ (@{[scalar keys %{$self->{connections}}]})\n" if DEBUG;
}

sub _stop {
Expand All @@ -231,7 +231,7 @@ sub _stream {

# Connect stream with reactor
$self->{connections}{$id}{stream} = $stream;
warn "-- $id ++ $$ (@{[scalar keys %{$self->{connections}}]})\n" if DEBUG;
warn "-- $id >>> $$ (@{[scalar keys %{$self->{connections}}]})\n" if DEBUG;
weaken $stream->reactor($self->reactor)->{reactor};
weaken $self;
$stream->on(close => sub { $self && $self->_remove($id) });
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -348,7 +348,7 @@ value of L<Mojo::Server/"reverse_proxy">.
upgrade_timeout => 45
Maximum amount of time in seconds a zero downtime software upgrade may take
before getting canceled, defaults to the value of L</"upgrade_timeout">.
before getting canceled, defaults to C<60>.
=head2 user
Expand Down

0 comments on commit 9e637b3

Please sign in to comment.