From 3e95068e684c61addfa5601fee97db0889ccf6f5 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 18 Apr 2017 11:15:54 +0800 Subject: [PATCH] Add the setting log level Increase the setting log level in the synchronization database. Change-Id: Ib3e94719593b40a9f5cf1e9c9bc06482c9894248 Closes-Bug: #1683567 --- manifests/db/sync.pp | 1 + spec/classes/glare_db_sync_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 4629af4..9eda5a8 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -21,6 +21,7 @@ class glare::db::sync( refreshonly => true, try_sleep => 5, tries => 10, + logoutput => on_failure, subscribe => [ Anchor['glare::install::end'], Anchor['glare::config::end'], diff --git a/spec/classes/glare_db_sync_spec.rb b/spec/classes/glare_db_sync_spec.rb index 756aa1f..dda682d 100644 --- a/spec/classes/glare_db_sync_spec.rb +++ b/spec/classes/glare_db_sync_spec.rb @@ -12,6 +12,7 @@ describe 'glare::db::sync' do :refreshonly => 'true', :try_sleep => 5, :tries => 10, + :logoutput => 'on_failure', :subscribe => ['Anchor[glare::install::end]', 'Anchor[glare::config::end]', 'Anchor[glare::dbsync::begin]'], @@ -34,6 +35,7 @@ describe 'glare::db::sync' do :refreshonly => 'true', :try_sleep => 5, :tries => 10, + :logoutput => 'on_failure', :subscribe => ['Anchor[glare::install::end]', 'Anchor[glare::config::end]', 'Anchor[glare::dbsync::begin]'],