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 );
|
= $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 )
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue