1
0
Fork 0
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:
Nate Berkopec 2020-11-30 09:26:08 -07:00
parent 7188ec8571
commit ee3341d670
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6
2 changed files with 13 additions and 6 deletions

View file

@ -329,7 +329,8 @@ module Puma
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.
# Used in Rails, but may be used by anyone.

View file

@ -85,11 +85,17 @@ module Puma
min_t = @options[:min_threads]
max_t = @options[:max_threads]
log "Puma starting in #{mode} mode...\n" \
"* Version #{Puma::Const::PUMA_VERSION} (#{ruby_engine}), codename: #{Puma::Const::CODE_NAME}\n" \
"* Min threads: #{min_t}, max threads: #{max_t}\n" \
"* Environment: #{ENV['RACK_ENV']}\n" \
"* Pid: #{Process.pid}"
log "Puma starting in #{mode} mode..."
log "* Puma version: #{Puma::Const::PUMA_VERSION} (#{ruby_engine}) (\"#{Puma::Const::CODE_NAME}\")"
log "* Min threads: #{min_t}"
log "* Max threads: #{max_t}"
log "* Environment: #{ENV['RACK_ENV']}"
if mode == "cluster"
log "* Master PID: #{Process.pid}"
else
log "* PID: #{Process.pid}"
end
end
def redirected_io?