1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2024-11-24 08:42:27 +02:00

rotate doesn't install on prod box

This commit is contained in:
Hubert depesz Lubaczewski 2023-12-27 14:12:34 +01:00
parent 14428d818f
commit e00909949f

View File

@ -1,16 +1,11 @@
package Explain;
use Mojo::Base 'Mojolicious';
use MojoX::Log::Rotate;
sub startup {
my $self = shift;
my $log = MojoX::Log::Rotate->new(
'path' => $self->home->child( 'log', $self->mode . '.log' ),
'frequency' => 86400
);
$self->log( $log );
$self->log->path( $self->home->child( 'log', $self->mode . '.log' ) );
$self->sessions->cookie_name( 'explain' );
$self->sessions->default_expiration( 60 * 60 * 24 * 365 );