Skip to content

Commit ded90de

Browse files
author
Dimitris Stafylarakis
committed
change parameter name loglevel -> log_level
1 parent eabf8ac commit ded90de

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

manifests/gunicorn.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
$access_log_format = false,
8181
$accesslog = false,
8282
$errorlog = false,
83-
$loglevel = 'error',
83+
$log_level = 'error',
8484
$template = 'python/gunicorn.erb',
8585
) {
8686

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

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

9494
file { "/etc/gunicorn.d/${name}":
9595
ensure => $ensure,

templates/gunicorn.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ CONFIG = {
4242
<% if @errorlog -%>
4343
'--error-logfile=<%= @errorlog %>',
4444
<% end -%>
45-
<% if @loglevel %>
46-
'--log-level=<%= @loglevel %>',
45+
<% if @log_level %>
46+
'--log-level=<%= @log_level %>',
4747
<% end -%>
4848
<% if @mode != 'django' -%>
4949
'<%= @appmodule %>',

0 commit comments

Comments
 (0)