Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
10577 มุมมอง

When I vi /var/log/postgresql/postgresql-9.5-main.log, There are only SQL queries that I typed in postgresql console.

How do I view all the SQL query that Odoo produces?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hey Eric Lee,

One way you can see sql queries by adding parameter (In Shell / Terminal) while running a odoo server is,

--log-level debug_sql

This will start odoo server in sql debug mode and you can check every query and sql movements.

Hope this will server your purpose !

Thanks,

Dipak

อวตาร
ละทิ้ง
ผู้เขียน

Thanks for the answer.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
5469
0
มี.ค. 15
3527
0
มี.ค. 15
3181
1
มี.ค. 25
1431
1
ก.ค. 21
4037