http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13799
Olli-Antti Kivilahti <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #40094|0 |1 is obsolete| | --- Comment #60 from Olli-Antti Kivilahti <[email protected]> --- Comment on attachment 40094 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40094 Bug 13799 - Set up logging for Mojolicious. >From 17fe4147396127c87be5d0270ad78a7d44576cd5 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <[email protected]> >Date: Thu, 11 Jun 2015 17:48:54 +0300 >Subject: [PATCH] Bug 13799 - Set up logging for Mojolicious. > >Somebody smarter can set the logging path as dynamic. >--- > Koha/REST/V1.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm >index 3becf12..197c17b 100644 >--- a/Koha/REST/V1.pm >+++ b/Koha/REST/V1.pm >@@ -2,10 +2,14 @@ package Koha::REST::V1; > > use Modern::Perl; > use Mojo::Base 'Mojolicious'; >+use Mojo::Log; > > sub startup { > my $self = shift; > >+ $self->app->log( Mojo::Log->new( path => >"/home/koha/koha-dev/var/log/kohaapi.mojo.log", level => 'debug' ) ); >+ >+ > my $route = $self->routes->under->to( > cb => sub { > my $c = shift; >-- >1.7.9.5 -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
