make unknown stations warning more helpful

This commit is contained in:
Daniel Friesel 2020-10-08 20:04:25 +02:00
parent e8ff730320
commit 3ca18af9b6

View file

@ -757,8 +757,15 @@ sub startup {
= $self->grep_unknown_stations( $train->route ); = $self->grep_unknown_stations( $train->route );
if (@unknown_stations) { if (@unknown_stations) {
$self->app->log->warn( $self->app->log->warn(
'Encountered unknown stations: ' sprintf(
. join( ', ', @unknown_stations ) ); 'Route of %s %s (%s -> %s) contains unknown stations: %s',
$train->type,
$train->train_no,
$train->origin,
$train->destination,
join( ', ', @unknown_stations )
)
);
} }
} }
} }