Changeset View
Changeset View
Standalone View
Standalone View
templates/gunicorn-instance.cfg.erb
# Gunicorn instance configuration. | # Gunicorn instance configuration. | ||||
# Managed by puppet (class gunicorn::instance <%= @name %>); changes will be lost | # Managed by puppet (class gunicorn::instance <%= @name %>); changes will be lost | ||||
<%- if @config_base_module -%> | |||||
# import all settings from the base module | |||||
from <%= @config_base_module %> import * | |||||
<%- end -%> | |||||
import traceback | import traceback | ||||
import gunicorn.glogging | import gunicorn.glogging | ||||
class Logger(gunicorn.glogging.Logger): | class Logger(gunicorn.glogging.Logger): | ||||
log_only_errors = <%= @log_only_errors_str %> | log_only_errors = <%= @log_only_errors_str %> | ||||
def access(self, resp, req, environ, request_time): | def access(self, resp, req, environ, request_time): | ||||
""" See http://httpd.apache.org/docs/2.0/logs.html#combined | """ See http://httpd.apache.org/docs/2.0/logs.html#combined | ||||
Show All 26 Lines |