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

silence asset logs unless in debug log level

Markus Kahl6416662302ce
diff --git a/config/environments/development.rb b/config/environments/development.rb
index b2f8b11b551..d42a8a01a6c 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -73,7 +73,7 @@ OpenProject::Application.configure do
config.assets.digest = false
# Suppress asset output
- config.assets.quiet = true
+ config.assets.quiet = true unless config.log_level == :debug
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 4659950e429..c2d24455752 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -93,6 +93,8 @@ OpenProject::Application.configure do
# Set to :debug to see everything in the log.
config.log_level = OpenProject::Configuration['log_level'].to_sym
+ config.assets.quiet = true unless config.log_level == :debug
+
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]