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

Merge pull request #346 from trombik/issue_345

(feature) allow users to disable colorize_logging in active record
This commit is contained in:
Sylvain 2022-05-23 10:41:43 +02:00
commit de6ab28e8e
3 changed files with 10 additions and 1 deletions

View File

@ -2,12 +2,13 @@
## next deploy
- Disable to clicking outside or pressing escape to close sign up modal
- Ability to disable colorize logging (#345)
- Fix a bug: when machines module disabled, Associated machines is still shown in trainings list
- Fix a bug: script mount-proof-of-identity-files unable to modify docker-compose.yml
- Fix a bug: Event reservation calendar encoding in mail
- Fix a bug: Missing of description of PlanCategory migration
- Fix a bug: Unable to create plans for all group
- Disable to clicking outside or pressing escape to close sign up modal
## v5.4.0 2022 May 12

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>