Skip to content

Commit

Permalink
improvement: territ/teryt: show more descriptive info about gugik/prg…
Browse files Browse the repository at this point in the history
… building database record problems (fixes)
  • Loading branch information
chilek committed Feb 14, 2023
1 parent 1277b22 commit 56664ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/lms-teryt.php
Original file line number Diff line number Diff line change
Expand Up @@ -1459,9 +1459,9 @@ function stream_notification_callback($notification_code, $severity, $message, $

if (!$city) {
if (strlen($simc)) {
fwrite($stderr, 'Warning: building was not fount in TERRIT database (TERC: ' . $terc . ', SIMC: ' . $simc . ', CITY: ' . $address['SIMC_NAZWA'] . ', ULIC: ' . $ulic . ', STREET: ' . $address['ULIC_NAZWA'] . ', NR: ' . $v['NUMER'] . ')!' . PHP_EOL);
fwrite($stderr, 'Warning: building was not found in TERRIT database (TERC: ' . $terc . ', SIMC: ' . $simc . ', CITY: ' . $address['SIMC_NAZWA'] . ', ULIC: ' . $ulic . ', STREET: ' . $address['ULIC_NAZWA'] . ', NR: ' . $v['NUMER'] . ')!' . PHP_EOL);
} else {
fwrite($stderr, 'Warning: building was not fount in TERRIT database (TERC: ' . $terc . ', SIMC: ' . $simc . ', CITY: ' . $address['SIMC_NAZWA'] . ', NR: ' . $v['NUMER'] . ')!' . PHP_EOL);
fwrite($stderr, 'Warning: building was not found in TERRIT database (TERC: ' . $terc . ', SIMC: ' . $simc . ', CITY: ' . $address['SIMC_NAZWA'] . ', NR: ' . $v['NUMER'] . ')!' . PHP_EOL);
}
continue;
}
Expand All @@ -1471,7 +1471,7 @@ function stream_notification_callback($notification_code, $severity, $message, $
} else {
$street = $location_cache->getStreetByIdent($city['id'], $ulic);
if (empty($street)) {
fwrite($stderr, 'warning: teryt terc ' . $terc . ', simc ' . $simc . ', ulic ' . $ulic . ' wasn\'t found in database!' . PHP_EOL);
fwrite($stderr, 'Warning: building was not found in TERRIT database (TERC: ' . $terc . ', SIMC: ' . $simc . ', CITY: ' . $address['SIMC_NAZWA'] . ', ULIC: ' . $ulic . ', STREET: ' . $address['ULIC_NAZWA'] . ', NR: ' . $v['NUMER'] . ')!' . PHP_EOL);
continue;
}
}
Expand Down

0 comments on commit 56664ef

Please sign in to comment.