From c8832e410e4c6c63ff89d2eea8190c13a740cf3e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Nov 2020 18:44:32 +0100 Subject: [PATCH] add_route_timestamps: adjust log severity we can't do anything about "trainlink not found", so it really shouldn't be a warning. --- lib/Travelynx.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index c30cfdf..50bf3f1 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1307,7 +1307,12 @@ sub startup { )->catch( sub { my ($err) = @_; - $self->app->log->warn("add_route_timestamps: $err"); + if ( $err eq 'trainlink not found' ) { + $self->app->log->debug("add_route_timestamps: $err"); + } + else { + $self->app->log->warn("add_route_timestamps: $err"); + } return; } )->wait;