@@ -303,7 +303,7 @@ func print(d *osmpbf.Decoder, masks *BitmaskMap, db *leveldb.DB, config settings
303
303
304
304
// no ways found, skip relation
305
305
if len (memberWayLatLons ) == 0 {
306
- log .Println ("denormalize failed for relation:" , v .ID , "no ways found" )
306
+ log .Println ("[warn] denormalize failed for relation:" , v .ID , "no ways found" )
307
307
continue
308
308
}
309
309
@@ -321,7 +321,7 @@ func print(d *osmpbf.Decoder, masks *BitmaskMap, db *leveldb.DB, config settings
321
321
322
322
// if for any reason we failed to find a valid bounds
323
323
if nil == wayBounds {
324
- log .Println ("failed to calculate bounds for relation member way" )
324
+ log .Println ("[warn] failed to calculate bounds for relation member way" )
325
325
continue
326
326
}
327
327
@@ -337,7 +337,7 @@ func print(d *osmpbf.Decoder, masks *BitmaskMap, db *leveldb.DB, config settings
337
337
338
338
// if for any reason we failed to find a valid bounds
339
339
if nil == bounds {
340
- log .Println ("denormalize failed for relation:" , v .ID , "no valid bounds" )
340
+ log .Println ("[warn] denormalize failed for relation:" , v .ID , "no valid bounds" )
341
341
continue
342
342
}
343
343
@@ -350,7 +350,7 @@ func print(d *osmpbf.Decoder, masks *BitmaskMap, db *leveldb.DB, config settings
350
350
351
351
default :
352
352
353
- log .Fatalf ("unknown type %T\n " , v )
353
+ log .Fatalf ("[error] unknown type %T\n " , v )
354
354
355
355
}
356
356
}
@@ -503,7 +503,7 @@ func cacheLookupNodes(db *leveldb.DB, way *osmpbf.Way) ([]map[string]string, err
503
503
504
504
data , err := db .Get ([]byte (stringid ), nil )
505
505
if err != nil {
506
- log .Println ("denormalize failed for way:" , way .ID , "node not found:" , stringid )
506
+ log .Println ("[warn] denormalize failed for way:" , way .ID , "node not found:" , stringid )
507
507
return make ([]map [string ]string , 0 ), err
508
508
}
509
509
@@ -521,7 +521,7 @@ func cacheLookupWayNodes(db *leveldb.DB, wayid int64) ([]map[string]string, erro
521
521
// look up way bytes
522
522
reldata , err := db .Get ([]byte (stringid ), nil )
523
523
if err != nil {
524
- log .Println ("lookup failed for way:" , wayid , "noderefs not found:" , stringid )
524
+ log .Println ("[warn] lookup failed for way:" , wayid , "noderefs not found:" , stringid )
525
525
return make ([]map [string ]string , 0 ), err
526
526
}
527
527
0 commit comments