Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net::Server doesn't like being passed a bare *STDERR handle. #27

Merged
merged 1 commit into from
Jun 16, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/starman
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ Defaults to the current group id.
Specify the pid file path. Use it with C<-D|--daemonize> option,
described in C<plackup -h>.

=item --error-log

Specify the pathname of a file where the error log should be written.
This enables you to still have access to the errors when using C<--daemonize>.

=back

Starman passes through other options given to L<Plack::Runner>, the
Expand Down
2 changes: 1 addition & 1 deletion lib/Starman/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sub run {
proto => $proto,
serialize => 'flock',
log_level => DEBUG ? 4 : 2,
log_file => $options->{error_log} || *STDERR,
($options->{error_log} ? ( log_file => $options->{error_log} ) : () ),
min_servers => $options->{min_servers} || $workers,
min_spare_servers => $options->{min_spare_servers} || $workers - 1,
max_spare_servers => $options->{max_spare_servers} || $workers - 1,
Expand Down