aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-14 13:44:57 +0000
committerAlex Schofield <git@ajschof.me>2025-02-14 13:44:57 +0000
commit6182930c3ea53932c6153dd101264cb90c90f979 (patch)
tree05ff4eacd1ea4957eb7db7b563f762beff77dba2 /cli.py
parentd467ac7f4c08e0cd92a5b31ed21f5ff52309b710 (diff)
downloadgdpr-obfuscator-6182930c3ea53932c6153dd101264cb90c90f979.tar.gz
gdpr-obfuscator-6182930c3ea53932c6153dd101264cb90c90f979.zip
add universal logging for debugging
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli.py b/cli.py
index bb12421..23c9057 100644
--- a/cli.py
+++ b/cli.py
@@ -1,5 +1,8 @@
import argparse
from obfuscator.csv_reader import CSVReader
+from obfuscator.logger import get_logger
+
+logger = get_logger("CLI")
def main():
parser = argparse.ArgumentParser(description="gdpr-obfuscator")
@@ -10,11 +13,12 @@ def main():
args = parser.parse_args()
if args.local and not args.s3:
+ logger.debug("User chose to read CSV from local path")
reader = CSVReader(args.local)
data = reader.read_local()
print(data)
else:
- pass
+ logger.debug("User chose to read CSV from S3")
if __name__ == "__main__":
main()
git.ajschof.me — hosted by ajschofield — powered by cgit