[hopem,r=]

Add loglevel config option.
Closes-Bug: 1520236
This commit is contained in:
Edward Hope-Morley 2016-01-13 14:45:54 +02:00
parent 614445f079
commit 7acd31a61c
3 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,8 @@
options:
loglevel:
default: 1
type: int
description: Mon and OSD debug level. Max is 20.
fsid:
type: string
default:

View File

@ -99,6 +99,7 @@ def emit_cephconf():
'use_syslog': str(config('use-syslog')).lower(),
'ceph_public_network': config('ceph-public-network'),
'ceph_cluster_network': config('ceph-cluster-network'),
'loglevel': config('loglevel'),
}
if config('prefer-ipv6'):

View File

@ -14,6 +14,8 @@ log to syslog = {{ use_syslog }}
err to syslog = {{ use_syslog }}
clog to syslog = {{ use_syslog }}
mon cluster log to syslog = {{ use_syslog }}
debug mon = {{ loglevel }}/5
debug osd = {{ loglevel }}/5
{%- if ceph_public_network is string %}
public network = {{ ceph_public_network }}