Skip to content

Commit 221f558

Browse files
committed
fix indent and typo, add date to logging output
1 parent 19a0d96 commit 221f558

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/pyosmium-up-to-date

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

144144
if __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

Comments
 (0)