Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Highlight code that triggered database queries in test debug logs

Christophe Bliardd4618a7f667c
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 2d9a5ef27f6..077f9b6997a 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -72,6 +72,9 @@ OpenProject::Application.configure do
:stderr
end
+ # Highlight code that triggered database queries in logs.
+ config.active_record.verbose_query_logs = true
+
# Disable asset digests
config.assets.compile = true
config.assets.compress = false