1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #791 from unleashed/allow_empty_tags

configuration: allow empty tags to mean no tag desired
This commit is contained in:
Evan Phoenix 2015-10-01 09:21:39 -07:00
commit 264dc0583c
3 changed files with 5 additions and 2 deletions

View file

@ -144,6 +144,9 @@
# Additional text to display in process listing
#
# tag 'app name'
#
# If you do not specify a tag, Puma will infer it. If you do not want Puma
# to add a tag, use an empty string.
# Change the default timeout of workers
#

View file

@ -266,7 +266,7 @@ module Puma
private
def title
buffer = "puma #{Puma::Const::VERSION} (#{@options[:binds].join(',')})"
buffer << " [#{@options[:tag]}]" if @options[:tag]
buffer << " [#{@options[:tag]}]" if @options[:tag] && !@options[:tag].empty?
buffer
end

View file

@ -186,7 +186,7 @@ module Puma
def worker(index, master)
title = "puma: cluster worker #{index}: #{master}"
title << " [#{@options[:tag]}]" if @options[:tag]
title << " [#{@options[:tag]}]" if @options[:tag] && !@options[:tag].empty?
$0 = title
Signal.trap "SIGINT", "IGNORE"