Change the name of the flag on the user preferences (#4452)

This commit is contained in:
Henrique Joaquim
2023-03-10 12:24:54 +00:00
committed by GitHub
parent aac18a7ab9
commit ae0a79ce0d
4 changed files with 4 additions and 4 deletions

2
CONTRIBUTING.md vendored
View File

@@ -1555,7 +1555,7 @@ def your_function() -> pd.DataFrame:
pass
```
> Note: if you don't want your logs to be collected, you can set the `LOG_COLLECTION` user preference to `False`.
> Note: if you don't want your logs to be collected, you can set the `LOG_COLLECT` user preference to `False`.
> Disclaimer: all the user paths, names, IPs, credentials and other sensitive information are anonymized, [take a look at how we do it](/openbb_terminal/core/log/generation/formatter_with_exceptions.py).
### Internationalization

View File

@@ -709,7 +709,7 @@ def main():
current_user = get_current_user()
current_user.preferences.ENABLE_EXIT_AUTO_HELP = False
current_user.preferences.LOG_COLLECTION = False
current_user.preferences.LOG_COLLECT = False
current_user.preferences.USE_ION = True
current_user.preferences.USE_PROMPT_TOOLKIT = False
current_user.preferences.REMEMBER_CONTEXTS = False

View File

@@ -43,7 +43,7 @@ class LogSender(Thread):
def start_required() -> bool:
"""Check if it makes sense to start a LogsSender instance ."""
return get_current_user().preferences.LOG_COLLECTION
return get_current_user().preferences.LOG_COLLECT
@property
def settings(self) -> Settings:

View File

@@ -56,7 +56,7 @@ class PreferencesModel:
ENABLE_RICH: bool = True
ENABLE_RICH_PANEL: bool = True
ENABLE_CHECK_API: bool = True
LOG_COLLECTION: bool = True
LOG_COLLECT: bool = True
TOOLBAR_HINT: bool = True
TOOLBAR_TWEET_NEWS: bool = False