From 00cff5ed47ca1dd4241c351939343b3b2e525328 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 19 Jan 2023 06:23:19 -0800 Subject: [PATCH] Remove unclear config warning (#2266) --- CHANGELOG.md | 1 + src/fides/core/config/__init__.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efe2a29e60..ee2bc3d791 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ The types of changes are: * No longer use `react-feature-flags` library. * Can have descriptions. [#2243](https://github.com/ethyca/fides/pull/2243) * Made privacy declarations optional when adding systems manually - [#2173](https://github.com/ethyca/fides/pull/2173) +* Removed an unclear logging message. [#2266](https://github.com/ethyca/fides/pull/2266) * Dynamic imports of custom overrides and SaaS test fixtures [#2169](https://github.com/ethyca/fides/pull/2169) * Added `AuthenticatedClient` to custom request override interface [#2171](https://github.com/ethyca/fides/pull/2171) * Only approve the specific collection instead of the entire dataset, display only top 1 classification by default [#2226](https://github.com/ethyca/fides/pull/2226) diff --git a/src/fides/core/config/__init__.py b/src/fides/core/config/__init__.py index 035902a1f1..94fbb1db86 100644 --- a/src/fides/core/config/__init__.py +++ b/src/fides/core/config/__init__.py @@ -171,15 +171,14 @@ def get_config(config_path_override: str = "", verbose: bool = False) -> FidesCo env_config_path = getenv(DEFAULT_CONFIG_PATH_ENV_VAR) config_path = config_path_override or env_config_path or DEFAULT_CONFIG_PATH - if verbose: - print(f"Loading config from: {config_path}") try: settings = toml.load(config_path) config = build_config(config_dict=settings) + print(f"Loaded config from: {config_path}") return config except FileNotFoundError: - print("No config file found.") + pass except IOError: echo_red(f"Error reading config file: {config_path}")