1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

(feature) allow users to disable colorize_logging in active record

fixes #345
This commit is contained in:
Tomoyuki Sakurai 2022-05-10 10:10:19 +07:00
parent d014e4da93
commit 59ca11b3e7
2 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,9 @@ module Fablab
Rails.application.config.paths['app/views'] << path
end
# disable ANSI color escape codes in active_record if NO_COLOR is defined.
config.colorize_logging = ENV['NO_COLOR'] ? false : true
FabManager.activate_plugins!
config.after_initialize do

View File

@ -269,6 +269,11 @@ See [Microsoft support](https://support.microsoft.com/en-us/kb/264372) for a lis
If set to `true`, and the application in started into a staging environment, this will enable the Crowdin In-context translation layer for the front-end application.
See [Crowdin documentation](https://support.crowdin.com/in-context-localization/) for more details about this.
Accordingly, `RAILS_LOCALE` and `APP_LOCALE` must be configured to `zu`.
<a name="NO_COLOR"></a>
NO_COLOR
If set to any value, this will set `config.colorize_logging` to `false`, disabling ANSI color codes when logging information.
<a name="open-projects-settings"></a>
## OpenLab settings
<a name="OPENLAB_BASE_URI"></a>