Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Change a couple print statements to logging.info
Browse files Browse the repository at this point in the history
Quiet mode is now a little more useful!
  • Loading branch information
BBaoVanC committed Sep 4, 2020
1 parent 6f64890 commit c9cd646
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions keyctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit c9cd646

Please sign in to comment.