From c9cd6469a9fd43618acef8d250e05ad8ea03d4c4 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 4 Sep 2020 15:37:34 -0500 Subject: [PATCH] Change a couple print statements to logging.info Quiet mode is now a little more useful! --- keyctl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/keyctl.py b/keyctl.py index 6e2f8df..202941e 100644 --- a/keyctl.py +++ b/keyctl.py @@ -118,13 +118,15 @@ def cmd_remove(args): if rmkey(args.key): logging.debug("Successfully removed the requested key") else: - print("No key was removed.") + logging.info("No key was removed.") def cmd_dedupe(args): for d in find_duplicates(): r = rmkey(d) logging.debug(r) - print("Removed duplicate key: {0}".format(d)) + logging.info("Removed duplicate key: {0}".format(d)) + else: + logging.info("[" + u"\u2713" + "] No duplicate keys found!") def cmd_show(args): for k in get_keys():