aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-18 22:13:51 +0000
committerAlex Schofield <git@ajschof.me>2025-02-18 22:13:51 +0000
commit5875763f8e384a50004c4dd8ea08598d68f251ed (patch)
tree45f0ab0351940c29d093634457fab88ae4f13bcd /cli.py
parentd0a8826f43a48e3db53f4ec3f62d5b6e5f3fd15d (diff)
downloadgdpr-obfuscator-5875763f8e384a50004c4dd8ea08598d68f251ed.tar.gz
gdpr-obfuscator-5875763f8e384a50004c4dd8ea08598d68f251ed.zip
make debug log messages clearer in output
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli.py b/cli.py
index 974ac3c..b1d4000 100644
--- a/cli.py
+++ b/cli.py
@@ -34,16 +34,16 @@ def main():
logger.debug("User chose to read CSV from local path")
data = reader.read_local(args.local)
# For debug purposes, log the data read from the CSV
- logger.debug(data)
+ logger.debug("Contents: " + str(data))
else:
logger.debug("User chose to read CSV from S3")
data = reader.read_s3(args.s3)
- logger.debug(data)
+ logger.debug("Contents: " + str(data))
# Obfuscate the data based on the user's choice of PII fields
obfuscated_data = obfuscate(data, args.pii)
# For debug purposes, log the obfuscated data as JSON for readability
- logger.debug(json.dumps(obfuscated_data, indent=4))
+ logger.debug("Obfuscated data (JSON): " + json.dumps(obfuscated_data, indent=4))
# If the script is run directly (as it should be), call the main function
git.ajschof.me — hosted by ajschofield — powered by cgit