mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Cleanup output further, visual changes
This commit is contained in:
parent
7188ec8571
commit
ee3341d670
2 changed files with 13 additions and 6 deletions
|
@ -329,7 +329,8 @@ module Puma
|
||||||
|
|
||||||
output_header "cluster"
|
output_header "cluster"
|
||||||
|
|
||||||
log "* Process workers: #{@options[:workers]}"
|
# This is aligned with the output from Runner, see Runner#output_header
|
||||||
|
log "* Workers: #{@options[:workers]}"
|
||||||
|
|
||||||
# Threads explicitly marked as fork safe will be ignored.
|
# Threads explicitly marked as fork safe will be ignored.
|
||||||
# Used in Rails, but may be used by anyone.
|
# Used in Rails, but may be used by anyone.
|
||||||
|
|
|
@ -85,11 +85,17 @@ module Puma
|
||||||
min_t = @options[:min_threads]
|
min_t = @options[:min_threads]
|
||||||
max_t = @options[:max_threads]
|
max_t = @options[:max_threads]
|
||||||
|
|
||||||
log "Puma starting in #{mode} mode...\n" \
|
log "Puma starting in #{mode} mode..."
|
||||||
"* Version #{Puma::Const::PUMA_VERSION} (#{ruby_engine}), codename: #{Puma::Const::CODE_NAME}\n" \
|
log "* Puma version: #{Puma::Const::PUMA_VERSION} (#{ruby_engine}) (\"#{Puma::Const::CODE_NAME}\")"
|
||||||
"* Min threads: #{min_t}, max threads: #{max_t}\n" \
|
log "* Min threads: #{min_t}"
|
||||||
"* Environment: #{ENV['RACK_ENV']}\n" \
|
log "* Max threads: #{max_t}"
|
||||||
"* Pid: #{Process.pid}"
|
log "* Environment: #{ENV['RACK_ENV']}"
|
||||||
|
|
||||||
|
if mode == "cluster"
|
||||||
|
log "* Master PID: #{Process.pid}"
|
||||||
|
else
|
||||||
|
log "* PID: #{Process.pid}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def redirected_io?
|
def redirected_io?
|
||||||
|
|
Loading…
Add table
Reference in a new issue