forked from organicmaps/organicmaps
[generator] Improve log filtering
This commit is contained in:
parent
d303aef130
commit
313de0695c
2 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ if [ "$MODE" == "coast" ]; then
|
|||
# Generate temporary coastlines file in the coasts intermediate dir
|
||||
log "TIMEMARK" "Generate coastlines"
|
||||
"$GENERATOR_TOOL" --intermediate_data_path="$INTCOASTSDIR/" --node_storage=map --osm_file_type=o5m --osm_file_name="$COASTS" \
|
||||
--user_resource_path="$DATA_PATH/" -make_coasts -fail_on_coasts 2>&1 | tee -a "$LOG_PATH/WorldCoasts.log"
|
||||
--user_resource_path="$DATA_PATH/" -make_coasts -fail_on_coasts 2>&1 | tee -a "$LOG_PATH/WorldCoasts.log" | grep -v 'CellGeometry()\|ProcessCell()'
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
log "TIMEMARK" "Coastline merge failed"
|
||||
|
|
|
@ -26,7 +26,7 @@ echo '### LOGS'
|
|||
grep -i 'error\|warn\|critical\|fail\|abort\|останов\|fatal' "$PLANET_LOG" | grep -v 'settings\.ini'
|
||||
for log in "$LOG_PATH"/*.log; do
|
||||
if [ "$log" != "$PLANET_LOG" -a "$log" != "$LOG_PATH/test_planet.log" ]; then
|
||||
CONTENT="$(grep -i 'error\|warn\|critical\|fail\|abort\|останов\|fatal' "$log" | grep -v 'settings\.ini\|language file for co\|Zero length lin\|too many tokens\|Equal choices for way\|No feature id for way\|number of threads is')"
|
||||
CONTENT="$(grep -i 'error\|warn\|critical\|fail\|abort\|останов\|fatal' "$log" | grep -v 'settings\.ini\|language file for co\|Zero length lin\|too many tokens\|Equal choices for way\|No feature id for way\|number of threads is\|Invalid order of edges')"
|
||||
if [ -n "$CONTENT" ]; then
|
||||
echo
|
||||
echo "$log"
|
||||
|
|
Loading…
Add table
Reference in a new issue