Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quiet mode #117

Open
ebbishop opened this issue Jan 12, 2024 · 9 comments
Open

Add quiet mode #117

ebbishop opened this issue Jan 12, 2024 · 9 comments

Comments

@ebbishop
Copy link

pmtiles version: 1.11.0, 926183a, built at 2023-10-31T00:41:14Z
OS: MacOS 11.7 and Ubuntu 22.04

It would be great to have a quiet mode available, especially when running pmtiles as part of a CI/CD pipeline. Converting mbtiles to pmtiles in our pipeline currently produces ~4,000 lines of progress bar logs. This doesn't add anything of value in this context, and it would be helpful to have a way to turn that off.

@bdon
Copy link
Member

bdon commented Jan 13, 2024

This would a good addition. I'd prefer keeping progress the default and adding --quiet instead of making quiet the default and adding --progress. What program is earlier in your pipeline that creates MBTiles?

@ebbishop
Copy link
Author

Agreed, it makes sense to have --quiet as an opt-in feature.

We're using tippecanoe to build mbtiles from a PostGIS db, then converting to pmtiles.

@bdon
Copy link
Member

bdon commented Jan 16, 2024

If you are using the maintained version of tippecanoe https://github.com/felt/tippecanoe you can generate PMTiles directly and don't need to use go-pmtiles at all.

@bdon
Copy link
Member

bdon commented Jan 29, 2024

@jackiescanlon
Copy link

Wondering if this might be supported soon? My use case is quieting the pmtiles serve command.

@bdon
Copy link
Member

bdon commented Oct 21, 2024

The issue above was regarding pmtiles convert, do you want pmtiles serve to output nothing at all? In most cases logging one line per served request with an HTTP status code is useful.

@jackiescanlon
Copy link

Yeah, a --quiet mode for pmtiles serve would be helpful. It is helpful to have the output for initial debugging but otherwise we'd love to quiet it down.

@bdon
Copy link
Member

bdon commented Oct 21, 2024

Piping the output to /dev/null could be one solution, unless you want to see only initialization messages, error messages etc and not info messages.

@jackiescanlon
Copy link

Yeah exactly, it'd still be good to see the other messages, just not the stream of served request messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants