From 1044e620ca3bb24a96947b58857b30775341b856 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 14 May 2015 07:04:19 -0400 Subject: [PATCH] Bug 14167: (QA followup) Add template and changes needed for packages Signed-off-by: Marcel de Rooy Amended: upgraded DEBUG level to WARN in config file. Signed-off-by: Tomas Cohen Arazi --- debian/scripts/koha-create | 4 ++++ debian/templates/koha-conf-site.xml.in | 1 + debian/templates/log4perl-site.conf.in | 13 +++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 debian/templates/log4perl-site.conf.in diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 2ed4e288b3..375707c103 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -586,6 +586,10 @@ eof generate_config_file koha-conf-site.xml.in \ "/etc/koha/sites/$name/koha-conf.xml" + # Generate and install the log4perl config file. + generate_config_file log4perl-site.conf.in \ + "/etc/koha/sites/$name/log4perl.conf" + # Generate and install Zebra config files. generate_config_file zebra-biblios-site.cfg.in \ "/etc/koha/sites/$name/zebra-biblios.cfg" diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 7049cba318..9820003d4f 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -282,6 +282,7 @@ __END_SRU_PUBLICSERVER__ /var/lock/koha/__KOHASITE__ 1 /etc/koha/searchengine/queryparser.yaml + __KOHA_CONF_DIR__/log4perl.conf diff --git a/debian/templates/log4perl-site.conf.in b/debian/templates/log4perl-site.conf.in new file mode 100644 index 0000000000..efc470746a --- /dev/null +++ b/debian/templates/log4perl-site.conf.in @@ -0,0 +1,13 @@ +log4perl.logger.intranet = WARN, INTRANET +log4perl.appender.INTRANET=Log::Log4perl::Appender::File +log4perl.appender.INTRANET.filename=__LOG_DIR__/intranet-error.log +log4perl.appender.INTRANET.mode=append +log4perl.appender.INTRANET.layout=PatternLayout +log4perl.appender.INTRANET.layout.ConversionPattern=[%d] [%p] %m %l %n + +log4perl.logger.opac = WARN, OPAC +log4perl.appender.OPAC=Log::Log4perl::Appender::File +log4perl.appender.OPAC.filename=__LOG_DIR__/opac-error.log +log4perl.appender.OPAC.mode=append +log4perl.appender.OPAC.layout=PatternLayout +log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n -- 2.39.5