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

(-)a/debian/templates/plack.psgi (-7 / +12 lines)
Lines 77-94 builder { Link Here
77
    enable "+Koha::Middleware::RealIP";
77
    enable "+Koha::Middleware::RealIP";
78
78
79
    mount '/opac'          => builder {
79
    mount '/opac'          => builder {
80
        enable 'Log4perl', category => 'plack-opac';
80
        if ( Log::Log4perl->get_logger('plack-opac')->has_appenders ){
81
        enable 'LogWarn';
81
            enable 'Log4perl', category => 'plack-opac';
82
            enable 'LogWarn';
83
        }
82
        $opac;
84
        $opac;
83
    };
85
    };
84
    mount '/intranet'      => builder {
86
    mount '/intranet'      => builder {
85
        enable 'Log4perl', category => 'plack-intranet';
87
        if ( Log::Log4perl->get_logger('plack-intranet')->has_appenders ){
86
        enable 'LogWarn';
88
            enable 'Log4perl', category => 'plack-intranet';
89
            enable 'LogWarn';
90
        }
87
        $intranet;
91
        $intranet;
88
    };
92
    };
89
    mount '/api/v1/app.pl' => builder {
93
    mount '/api/v1/app.pl' => builder {
90
        enable 'Log4perl', category => 'plack-api';
94
        if ( Log::Log4perl->get_logger('plack-api')->has_appenders ){
91
        enable 'LogWarn';
95
            enable 'Log4perl', category => 'plack-api';
96
            enable 'LogWarn';
97
        }
92
        $apiv1;
98
        $apiv1;
93
    };
99
    };
94
};
100
};
95
- 

Return to bug 16357