@@ -76,10 +76,10 @@ def update_from_custom_server(url, seq, ts, options):
7676 cmpdate = cmpdate .replace (tzinfo = dt .timezone .utc )
7777 if ts < cmpdate :
7878 log .error (
79- """The OSM file is more than 3 months old. You should download a
80- more recent file instead of updating. If you really want to
81- update the file, use --force-update-of-old-planet.""" )
82- return 3
79+ """The OSM file is more than 3 months old. You should download a
80+ more recent file instead of updating. If you really want to
81+ update the file, use --force-update-of-old-planet.""" )
82+ return 3
8383
8484 log .info ("Starting download at ID %d (max %d MB)" % (startseq , options .outsize ))
8585
@@ -104,7 +104,7 @@ def update_from_custom_server(url, seq, ts, options):
104104 if outfile is None :
105105 os .rename (ofname , infile )
106106
107- log .info ("Downloaded until %d. Server has dat available until %d." % outseqs )
107+ log .info ("Downloaded until %d. Server has data available until %d." % outseqs )
108108
109109 return 0 if outseqs [1 ] == outseqs [0 ] else 1
110110
@@ -143,7 +143,7 @@ def compute_start_point(options):
143143
144144if __name__ == '__main__' :
145145 logging .basicConfig (stream = sys .stderr ,
146- format = '%(levelname)s: %(message)s' )
146+ format = '%(asctime)s %( levelname)s: %(message)s' )
147147
148148 parser = ArgumentParser (description = __doc__ ,
149149 formatter_class = RawDescriptionHelpFormatter )
0 commit comments