Skip to content

Commit

Permalink
tweaked Hypnotoad log messages a little
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 25, 2012
1 parent 6459f7f commit a10a63e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -265,7 +265,7 @@ sub _listen {

# Friendly message
return if $self->silent;
$self->app->log->info("Server listening ($listen)");
$self->app->log->info(qq/Listening at "$listen"./);
$listen =~ s|^(https?\://)\*|${1}127.0.0.1|i;
say "Server available at $listen.";
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -287,7 +287,7 @@ sub _pid_file {
return if -e (my $file = $self->{config}->{pid_file});

# Create PID file
$self->{log}->info(qq/Storing PID $$ in "$file"./);
$self->{log}->info(qq/Creating PID file "$file"./);
croak qq/Can't create PID file "$file": $!/
unless my $pid = IO::File->new($file, '>', 0644);
print $pid $$;
Expand All @@ -310,7 +310,7 @@ sub _reap {
else {
my $w = delete $self->{workers}->{$pid};
$self->{log}->info("Worker $pid died unexpectedly, restarting.")
unless $w->{graceful} || $w->{force};
unless $w->{graceful} || $w->{force} || $self->{finished};
}
}

Expand Down

0 comments on commit a10a63e

Please sign in to comment.