Skip to content

Commit

Permalink
change parameter name loglevel -> log_level
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitris Stafylarakis committed Dec 15, 2015
1 parent eabf8ac commit ded90de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/gunicorn.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
$access_log_format = false,
$accesslog = false,
$errorlog = false,
$loglevel = 'error',
$log_level = 'error',
$template = 'python/gunicorn.erb',
) {

Expand All @@ -89,7 +89,7 @@
fail('python::gunicorn: dir parameter must not be empty')
}

validate_re($loglevel, 'debug|info|warning|error|critical', "Invalid \$loglevel value ${loglevel}")
validate_re($log_level, 'debug|info|warning|error|critical', "Invalid \$log_level value ${log_level}")

file { "/etc/gunicorn.d/${name}":
ensure => $ensure,
Expand Down
4 changes: 2 additions & 2 deletions templates/gunicorn.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ CONFIG = {
<% if @errorlog -%>
'--error-logfile=<%= @errorlog %>',
<% end -%>
<% if @loglevel %>
'--log-level=<%= @loglevel %>',
<% if @log_level %>
'--log-level=<%= @log_level %>',
<% end -%>
<% if @mode != 'django' -%>
'<%= @appmodule %>',
Expand Down

0 comments on commit ded90de

Please sign in to comment.