Suppress timestamp from logs

Journald will handle this
master
Daniel Berteaud 9 years ago
parent d19733bf15
commit 21d8c53218
  1. 5
      vroom.pl

@ -2118,6 +2118,11 @@ push @{app->renderer->paths}, 'templates/'.$config->{'interface.template'};
app->update_session_keys; app->update_session_keys;
# Set log level # Set log level
app->log->level($config->{'daemon.log_level'}); app->log->level($config->{'daemon.log_level'});
# Remove timestamp, journald handles it
app->log->format(sub {
my ($time, $level, @lines) = @_;
return "[$level] " . join("\n", @lines) . "\n";
});
app->sessions->secure(1); app->sessions->secure(1);
app->sessions->cookie_name('vroom'); app->sessions->cookie_name('vroom');
app->hook(before_dispatch => sub { app->hook(before_dispatch => sub {

Loading…
Cancel
Save