View | Details | Raw Unified | Return to bug 15253
Collapse All | Expand All

(-)a/debian/koha-common.postinst (+16 lines)
Lines 173-178 EOF Link Here
173
    fi
173
    fi
174
done
174
done
175
175
176
for site in $(koha-list); do
177
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
178
    if [ !log4perl_component $log4perl_config "sip" ]; then
179
        cat <<EOF >> $log4perl_config
180
log4perl.logger.sip = DEBUG, SIP
181
log4perl.appender.SIP=Log::Log4perl::Appender::File
182
log4perl.appender.SIP.filename=/var/log/koha/$site/sip.log
183
log4perl.appender.SIP.mode=append
184
log4perl.appender.SIP.layout=PatternLayout
185
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n
186
log4perl.appender.SIP.utf8=1
187
188
EOF
189
    fi
190
done
191
176
# Bug 14106 - fix the modulePath of existing koha instances so that it'll
192
# Bug 14106 - fix the modulePath of existing koha instances so that it'll
177
# continue to work. This will only patch the files if the exact original string
193
# continue to work. This will only patch the files if the exact original string
178
# that we're fixing them from is there, so we just run it every time. Maybe
194
# that we're fixing them from is there, so we just run it every time. Maybe
(-)a/debian/templates/log4perl-site.conf.in (+8 lines)
Lines 29-31 log4perl.appender.API.mode=append Link Here
29
log4perl.appender.API.layout=PatternLayout
29
log4perl.appender.API.layout=PatternLayout
30
log4perl.appender.API.layout.ConversionPattern=[%d] [%p] %m %l %n
30
log4perl.appender.API.layout.ConversionPattern=[%d] [%p] %m %l %n
31
log4perl.appender.API.utf8=1
31
log4perl.appender.API.utf8=1
32
33
log4perl.logger.sip = DEBUG, SIP
34
log4perl.appender.SIP=Log::Log4perl::Appender::File
35
log4perl.appender.SIP.filename=__LOG_DIR__/sip.log
36
log4perl.appender.SIP.mode=append
37
log4perl.appender.SIP.layout=PatternLayout
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n
39
log4perl.appender.SIP.utf8=1
(-)a/etc/log4perl.conf (-2 / +1 lines)
Lines 32-38 log4perl.appender.API.utf8=1 Link Here
32
32
33
log4perl.logger.sip = DEBUG, SIP
33
log4perl.logger.sip = DEBUG, SIP
34
log4perl.appender.SIP=Log::Log4perl::Appender::File
34
log4perl.appender.SIP=Log::Log4perl::Appender::File
35
log4perl.appender.SIP.filename=__LOG_DIR__/sip2.log
35
log4perl.appender.SIP.filename=__LOG_DIR__/sip.log
36
log4perl.appender.SIP.mode=append
36
log4perl.appender.SIP.mode=append
37
log4perl.appender.SIP.layout=PatternLayout
37
log4perl.appender.SIP.layout=PatternLayout
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n
39
- 

Return to bug 15253