From 21d8c53218ff1a60597a01074b6a17835cb0c851 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 1 Jul 2015 13:27:35 +0200 Subject: [PATCH] Suppress timestamp from logs Journald will handle this --- vroom.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vroom.pl b/vroom.pl index a790e7b..d1d8682 100755 --- a/vroom.pl +++ b/vroom.pl @@ -2118,6 +2118,11 @@ push @{app->renderer->paths}, 'templates/'.$config->{'interface.template'}; app->update_session_keys; # Set 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->cookie_name('vroom'); app->hook(before_dispatch => sub {