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:
parent
d014e4da93
commit
59ca11b3e7
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user