[Bug]: how to show sql queries #594

Closed
opened 2026-02-04 20:28:52 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @gpt8763 on GitHub (Oct 28, 2024).

Where is the problem occurring?

None

What browsers are you seeing the problem on?

No response

Current behaviour

i try to many way as follow ,but can't print sql

Desired behaviour

i want planka print sql where it is runing

Steps to reproduce

how to show sql queries. i try to many way as follow ,but can't print sql
SAILS_LOG_SQL=1 node app.js
process.env.SAILS_LOG_SQL = 1;
set debug level in sails.config.log

Other information

No response

Originally created by @gpt8763 on GitHub (Oct 28, 2024). ### Where is the problem occurring? None ### What browsers are you seeing the problem on? _No response_ ### Current behaviour i try to many way as follow ,but can't print sql ### Desired behaviour i want planka print sql where it is runing ### Steps to reproduce how to show sql queries. i try to many way as follow ,but can't print sql SAILS_LOG_SQL=1 node app.js process.env.SAILS_LOG_SQL = 1; set debug level in sails.config.log ### Other information _No response_
Author
Owner

@meltyshev commented on GitHub (Oct 28, 2024):

Hi! This can be done with DEBUG=query, though I've only tested it in development mode.

@meltyshev commented on GitHub (Oct 28, 2024): Hi! This can be done with `DEBUG=query`, though I've only tested it in development mode.
Author
Owner

@gpt8763 commented on GitHub (Oct 29, 2024):

I added DEBUG=query to the server's .env file, but I still don't see the sql log in the DEBUGGER CONSOLE

@gpt8763 commented on GitHub (Oct 29, 2024): I added DEBUG=query to the server's .env file, but I still don't see the sql log in the DEBUGGER CONSOLE
Author
Owner

@meltyshev commented on GitHub (Oct 31, 2024):

Hm, that's strange. I just checked by adding DEBUG=query to the .env file and also tried it in the production environment with docker-compose.yml, it works for me - every database query is logged to the console.

@meltyshev commented on GitHub (Oct 31, 2024): Hm, that's strange. I just checked by adding `DEBUG=query` to the `.env` file and also tried it in the production environment with `docker-compose.yml`, it works for me - every database query is logged to the console.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#594