Skip to content

Commit

Permalink
Only show parameters inside queries if "dev mode" is True, not if "te…
Browse files Browse the repository at this point in the history
…st mode" is True.
  • Loading branch information
pattisdr committed Oct 3, 2022
1 parent 8093ee5 commit 4ca1f5d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fides/api/ops/service/connectors/base_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ class BaseConnector(Generic[DB_CONNECTOR_TYPE], ABC):

def __init__(self, configuration: ConnectionConfig):
self.configuration = configuration
# If Fidesops is running in test mode, it's OK to show
# parameters inside queries for debugging purposes. By
# default we assume that Fidesops is not running in test
# mode.
self.hide_parameters = not CONFIG.test_mode
# If Fidesops is running in dev mode, it's OK to show
# parameters inside queries for debugging purposes.
self.hide_parameters = not CONFIG.dev_mode
self.db_client: Optional[DB_CONNECTOR_TYPE] = None

@abstractmethod
Expand Down

0 comments on commit 4ca1f5d

Please sign in to comment.