aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-19 02:37:42 +0000
committerAlex Schofield <git@ajschof.me>2025-02-19 02:37:42 +0000
commita41d27a5db76f4e1989067db6b071a88efd5fa8b (patch)
treef1ba394adfed18f41078da6725cd9c1a325e23ee
parenta4d1862161cf727447900f937c73ef77302a5d51 (diff)
downloadgdpr-obfuscator-a41d27a5db76f4e1989067db6b071a88efd5fa8b.tar.gz
gdpr-obfuscator-a41d27a5db76f4e1989067db6b071a88efd5fa8b.zip
invoke debug logging using CLI argument
-rw-r--r--cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli.py b/cli.py
index 40d8087..bf9b53f 100644
--- a/cli.py
+++ b/cli.py
@@ -41,6 +41,10 @@ def main():
# Parse the arguments
args = parser.parse_args()
+ # If the user chose verbose logging, set the logger to debug
+ if args.verbose:
+ logger.setLevel("DEBUG")
+
# Create the CSVReader object
reader = CSVReader()
git.ajschof.me — hosted by ajschofield — powered by cgit