[Tile-serving] [openstreetmap/osm2pgsql] add option to suppress progress log (-q --quiet) (#591)
Hartmut Holzgraefe
notifications at github.com
Wed Nov 14 13:38:37 UTC 2018
> "It is especially problematic for programs calling osm2pgsql"
Aside from the stdout/stderr issue, wouldn't it make sense to only print progress updates if stdout/stderr is a tty?
It's easily testable via the isatty(fd) C standard library function, and a similar approach is used by basic linux tools like "ls", which only adds colors, and columnar output, if writing to a tty.
The majority of the --noprogress use cases would already be taken care of with this, but explicit --noprogress and --progress options would then still make sense to override the automatic decision and explicitly enforce desired behavior ...
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/591#issuecomment-438664471
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20181114/f5d26691/attachment.html>
More information about the Tile-serving
mailing list