From cb9d852433331e2bc7a8c7e458c3d79d0f582b69 Mon Sep 17 00:00:00 2001
From: Michal Schorm <mschorm@redhat.com>
Date: Thu, 1 Dec 2016 02:00:37 +0100
Subject: [PATCH] - Log-error option added to all config files examples  
 Resolves: #1382988

---
 mariadb.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/mariadb.spec b/mariadb.spec
index 29e2700..161e5fa 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -879,6 +879,9 @@ mv Docs/README-wsrep Docs/README.wsrep
 # remove *.jar file from mysql-test
 rm -rf %{buildroot}%{_datadir}/mysql-test/plugin/connect/connect/std_data/JdbcMariaDB.jar
 
+#
+echo -e "\n\nlog-error=/var/log/mariadb/mariadb.log\n" | tee -a %{buildroot}/usr/share/mariadb/*.cnf
+
 %if %{without clibrary}
 unlink %{buildroot}%{_libdir}/mysql/libmysqlclient.so
 unlink %{buildroot}%{_libdir}/mysql/libmysqlclient_r.so
@@ -1336,12 +1339,13 @@ fi
 %changelog
 * Wed Nov 30 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-5
 - Testsuite blacklists heavily updated. Current tracker: #1399847
+- Log-error option added to all config files examples
+  Resolves: #1382988
 
 * Wed Nov 16 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-4
 - JdbcMariaDB.jar test removed
 - PCRE version check added
- Resolves: #1382988
- Related: #1396945, #1096787
+  Related: #1382988, #1396945, #1096787
 
 * Wed Nov 16 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-4
 - test suite ENABLED, consensus was made it still should be run every build