From 56664efa12b1318e37bc04ebe19a8c4edad858e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Tue, 14 Feb 2023 13:50:00 +0100 Subject: [PATCH] improvement: territ/teryt: show more descriptive info about gugik/prg building database record problems (fixes) --- bin/lms-teryt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/lms-teryt.php b/bin/lms-teryt.php index 35211c9495..74eb6a3e60 100755 --- a/bin/lms-teryt.php +++ b/bin/lms-teryt.php @@ -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; } @@ -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; } }