@@ -380,14 +380,14 @@ int main(int argc, char **argv)
380380 }
381381
382382 if (verbose ) {
383- g_logger (G_LOG_LEVEL_WARNING , "bad line %d : %s" , num_all , tmp );
383+ g_logger (G_LOG_LEVEL_WARNING , "Read invalid line : %s" , tmp );
384384 }
385385
386386 continue ;
387387 }
388388
389389 if (verbose ) {
390- g_logger (G_LOG_LEVEL_MESSAGE , "read: x=%d y=%d z= %d" , x , y , z );
390+ g_logger (G_LOG_LEVEL_MESSAGE , "Read valid line: %d/%d/ %d" , z , x , y );
391391 }
392392
393393 while (z > max_zoom ) {
@@ -402,35 +402,35 @@ int main(int argc, char **argv)
402402 z ++ ;
403403 }
404404
405- if (verbose ) {
406- g_logger (G_LOG_LEVEL_MESSAGE , "loop: x=%d y=%d z=%d up to z=%d" , x , y , z , min_zoom );
407- }
408-
409405 num_read ++ ;
410406
411407 if (progress && (num_read % 100 ) == 0 ) {
412408 g_logger (G_LOG_LEVEL_INFO , "Read and expanded %i tiles from list." , num_read );
413409 }
414410
411+ if (verbose ) {
412+ g_logger (G_LOG_LEVEL_MESSAGE , "Starting loop on %d/%d/%d for zoom levels %d to %d" , z , x , y , min_zoom , max_zoom );
413+ }
414+
415415 for (; z >= min_zoom ; z -- , x >>= 1 , y >>= 1 ) {
416416 char name [PATH_MAX ];
417417
418- if (verbose ) {
419- g_logger (G_LOG_LEVEL_MESSAGE , "process: x=%d y=%d z=%d" , x , y , z );
420- }
421-
422418 // don't do anything if this tile was already requested.
423419 // renderd does keep a list internally to avoid enqueing the same tile
424420 // twice but in case it has already rendered the tile we don't want to
425421 // cause extra work.
426422 if (TILE_REQUESTED (z - excess_zoomlevels , x >> excess_zoomlevels , y >> excess_zoomlevels )) {
427423 if (verbose ) {
428- g_logger (G_LOG_LEVEL_MESSAGE , "already requested" );
424+ g_logger (G_LOG_LEVEL_MESSAGE , "Already requested metatile containing '%d/%d/%d', moving on to next input line" , z , x , y );
429425 }
430426
431427 break ;
432428 }
433429
430+ if (verbose ) {
431+ g_logger (G_LOG_LEVEL_MESSAGE , "Processing: %d/%d/%d" , z , x , y );
432+ }
433+
434434 // mark tile as requested. (do this even if, below, the tile is not
435435 // actually requested due to not being present on disk, to avoid
436436 // unnecessary later stat'ing).
@@ -442,34 +442,35 @@ int main(int argc, char **argv)
442442
443443 num_all ++ ;
444444 s = store -> tile_stat (store , mapname , "" , x , y , z );
445+ store -> tile_storage_id (store , mapname , "" , x , y , z , name );
445446
446447 if (s .size > 0 ) { // Tile exists
447448 // tile exists on disk; delete/touch/render it
448449 if (delete_from_passed && z >= delete_from ) {
449450 if (progress ) {
450- g_logger (G_LOG_LEVEL_MESSAGE , "delete: %s " , store -> tile_storage_id ( store , mapname , "" , x , y , z , name ) );
451+ g_logger (G_LOG_LEVEL_MESSAGE , "Deleting '%s' " , name );
451452 }
452453
453454 store -> metatile_delete (store , mapname , x , y , z );
454455 num_unlink ++ ;
455456 } else if (touch_from_passed && z >= touch_from ) {
456457 if (progress ) {
457- g_logger (G_LOG_LEVEL_MESSAGE , "touch: %s " , store -> tile_storage_id ( store , mapname , "" , x , y , z , name ) );
458+ g_logger (G_LOG_LEVEL_MESSAGE , "Touching '%s' " , name );
458459 }
459460
460461 store -> metatile_expire (store , mapname , x , y , z );
461462 num_touch ++ ;
462463 } else if (doRender ) {
463464 if (progress ) {
464- g_logger (G_LOG_LEVEL_MESSAGE , "render: %s " , store -> tile_storage_id ( store , mapname , "" , x , y , z , name ) );
465+ g_logger (G_LOG_LEVEL_MESSAGE , "Rendering '%s' " , name );
465466 }
466467
467468 enqueue (mapname , x , y , z );
468469 num_render ++ ;
469470 }
470471 } else {
471472 if (verbose ) {
472- g_logger (G_LOG_LEVEL_MESSAGE , "not on disk: %s" , store -> tile_storage_id ( store , mapname , "" , x , y , z , name ) );
473+ g_logger (G_LOG_LEVEL_MESSAGE , "Skipping '%s' (metatile does not exist)" , name );
473474 }
474475
475476 num_ignore ++ ;
0 commit comments