From c74efce0bd6a044d917830fa398fba47309224a8 Mon Sep 17 00:00:00 2001
From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Date: Mon, 18 Feb 2019 10:55:54 +0000
Subject: [PATCH] Bug 20750: (follow-up) Set logging default off

As per comment #72 here:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20750#c72

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
---
 installer/data/mysql/atomicupdate/bug_20750-add_illlog_preference.perl | 2 +-
 installer/data/mysql/sysprefs.sql                                      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/installer/data/mysql/atomicupdate/bug_20750-add_illlog_preference.perl b/installer/data/mysql/atomicupdate/bug_20750-add_illlog_preference.perl
index b3317ee254..75838f9be2 100644
--- a/installer/data/mysql/atomicupdate/bug_20750-add_illlog_preference.perl
+++ b/installer/data/mysql/atomicupdate/bug_20750-add_illlog_preference.perl
@@ -1,6 +1,6 @@
 $DBversion = 'XXX';  # will be replaced by the RM
 if( CheckVersion( $DBversion ) ) {
-    $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, explanation, type) VALUES ('IllLog', 1, 'If ON, log information about ILL requests', 'YesNo')" );
+    $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, explanation, type) VALUES ('IllLog', 0, 'If ON, log information about ILL requests', 'YesNo')" );
 
     SetVersion( $DBversion );
     print "Upgrade to $DBversion done (Bug 20750 - Allow timestamped auditing of ILL request events)\n";
diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql
index bb36a0253c..145cca0f62 100644
--- a/installer/data/mysql/sysprefs.sql
+++ b/installer/data/mysql/sysprefs.sql
@@ -216,7 +216,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('IDreamBooksResults','0','','Display IDreamBooks.com rating in search results','YesNo'),
 ('IDreamBooksReviews','0','','Display book review snippets from IDreamBooks.com','YesNo'),
 ('IdRef','0','','Disable/enable the IdRef webservice from the OPAC detail page.','YesNo'),
-('IllLog', 1, '', 'If ON, log information about ILL requests', 'YesNo'),
+('IllLog', 0, '', 'If ON, log information about ILL requests', 'YesNo'),
 ('ILLModule','0','If ON, enables the interlibrary loans module.','','YesNo'),
 ('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'),
 ('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
-- 
2.11.0