From 73fa1a960c6affad0d3131ac62aa961267cdfe7f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 27 Dec 2022 09:46:15 +0100 Subject: work: Fix log invocation --- lib/Travelynx/Command/work.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 811b8f1..e12e5e3 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -57,7 +57,7 @@ sub run { @{ $status->{results} }; if ( not $train ) { - $self->log->info( + $self->app->log->info( "could not find train $train_id at $dep\n"); return; } -- cgit v1.2.3