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

(-)a/Koha/Logger.pm (+12 lines)
Lines 189-194 sub debug_to_screen { Link Here
189
    $self->{logger}->level( $Log::Log4perl::DEBUG );
189
    $self->{logger}->level( $Log::Log4perl::DEBUG );
190
}
190
}
191
191
192
=head2 context
193
194
Mojolicous 8.23 added a "context" method, which Mojolicious will die
195
on if it's missing from the logger.
196
197
=cut
198
199
sub context {
200
    my $self = shift;
201
    return $self;
202
}
203
192
=head1 AUTHOR
204
=head1 AUTHOR
193
205
194
Kyle M Hall, E<lt>kyle@bywatersolutions.comE<gt>
206
Kyle M Hall, E<lt>kyle@bywatersolutions.comE<gt>
(-)a/Koha/REST/V1.pm (-1 / +3 lines)
Lines 43-48 Overloaded Mojolicious->startup method. It is called at application startup. Link Here
43
sub startup {
43
sub startup {
44
    my $self = shift;
44
    my $self = shift;
45
45
46
    my $logger = Koha::Logger->get({ interface => 'api' });
47
    $self->log($logger);
48
46
    $self->hook(
49
    $self->hook(
47
        before_dispatch => sub {
50
        before_dispatch => sub {
48
            my $c = shift;
51
            my $c = shift;
49
- 

Return to bug 22678