diff --git a/ansible/roles/swift/defaults/main.yml b/ansible/roles/swift/defaults/main.yml index d433fbe51a..ec84027848 100644 --- a/ansible/roles/swift/defaults/main.yml +++ b/ansible/roles/swift/defaults/main.yml @@ -31,6 +31,8 @@ swift_rsyncd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ do swift_rsyncd_tag: "{{ swift_tag }}" swift_rsyncd_image_full: "{{ swift_rsyncd_image }}:{{ swift_rsyncd_tag }}" +swift_log_level: "{{ 'INFO' if openstack_logging_debug == 'False' else 'DEBUG'}}" + #################### # OpenStack #################### diff --git a/ansible/roles/swift/templates/account.conf.j2 b/ansible/roles/swift/templates/account.conf.j2 index 9863eda519..36b2d7367d 100644 --- a/ansible/roles/swift/templates/account.conf.j2 +++ b/ansible/roles/swift/templates/account.conf.j2 @@ -7,7 +7,7 @@ log_udp_host = {{ syslog_server }} log_udp_port = {{ syslog_udp_port }} log_name = {{ service_name }} log_facility = {{ syslog_swift_facility }} -log_level = INFO +log_level = {{ swift_log_level }} workers = {{ openstack_service_workers }} [pipeline:main] diff --git a/ansible/roles/swift/templates/container.conf.j2 b/ansible/roles/swift/templates/container.conf.j2 index 1cbc627524..a12537580e 100644 --- a/ansible/roles/swift/templates/container.conf.j2 +++ b/ansible/roles/swift/templates/container.conf.j2 @@ -7,7 +7,7 @@ log_udp_host = {{ syslog_server }} log_udp_port = {{ syslog_udp_port }} log_name = {{ service_name }} log_facility = {{ syslog_swift_facility }} -log_level = INFO +log_level = {{ swift_log_level }} workers = {{ openstack_service_workers }} [pipeline:main] diff --git a/ansible/roles/swift/templates/object.conf.j2 b/ansible/roles/swift/templates/object.conf.j2 index d2513255df..204a9a0bb9 100644 --- a/ansible/roles/swift/templates/object.conf.j2 +++ b/ansible/roles/swift/templates/object.conf.j2 @@ -8,7 +8,7 @@ log_udp_host = {{ syslog_server }} log_udp_port = {{ syslog_udp_port }} log_name = {{ service_name }} log_facility = {{ syslog_swift_facility }} -log_level = INFO +log_level = {{ swift_log_level }} workers = {{ openstack_service_workers }} [pipeline:main] diff --git a/ansible/roles/swift/templates/proxy-server.conf.j2 b/ansible/roles/swift/templates/proxy-server.conf.j2 index efe81d32a8..ecfe735be3 100644 --- a/ansible/roles/swift/templates/proxy-server.conf.j2 +++ b/ansible/roles/swift/templates/proxy-server.conf.j2 @@ -6,7 +6,7 @@ log_udp_host = {{ syslog_server }} log_udp_port = {{ syslog_udp_port }} log_name = {{ service_name }} log_facility = {{ syslog_swift_facility }} -log_level = INFO +log_level = {{ swift_log_level }} workers = {{ openstack_service_workers }} [pipeline:main]