mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
make unknown stations warning more helpful
This commit is contained in:
parent
e8ff730320
commit
3ca18af9b6
1 changed files with 9 additions and 2 deletions
|
@ -757,8 +757,15 @@ sub startup {
|
|||
= $self->grep_unknown_stations( $train->route );
|
||||
if (@unknown_stations) {
|
||||
$self->app->log->warn(
|
||||
'Encountered unknown stations: '
|
||||
. join( ', ', @unknown_stations ) );
|
||||
sprintf(
|
||||
'Route of %s %s (%s -> %s) contains unknown stations: %s',
|
||||
$train->type,
|
||||
$train->train_no,
|
||||
$train->origin,
|
||||
$train->destination,
|
||||
join( ', ', @unknown_stations )
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue