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

Turning on logging of the Mapnik SQL query during map rendering #987

Open
kolisko opened this issue Feb 12, 2023 · 1 comment
Open

Turning on logging of the Mapnik SQL query during map rendering #987

kolisko opened this issue Feb 12, 2023 · 1 comment

Comments

@kolisko
Copy link

kolisko commented Feb 12, 2023

I have connected Mapnik to PostGIS and I am using a datasource. I would like to view the SQL query that is executed when the render() method is called. I have attempted this without success. Any idea?

 (mapnik as any).logger.set_severity((mapnik as any).severity_type.Debug);
 (mapnik as any).Logger.setSeverity((mapnik as any).Logger.DEBUG);
@springmeyer
Copy link
Member

In my experience the most useful and easy thing to do is to turn on logging at the database level.

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

2 participants