Change a couple print statements to logging.info
Quiet mode is now a little more useful!
This commit is contained in:
parent
6f64890e34
commit
c9cd6469a9
@ -118,13 +118,15 @@ def cmd_remove(args):
|
|||||||
if rmkey(args.key):
|
if rmkey(args.key):
|
||||||
logging.debug("Successfully removed the requested key")
|
logging.debug("Successfully removed the requested key")
|
||||||
else:
|
else:
|
||||||
print("No key was removed.")
|
logging.info("No key was removed.")
|
||||||
|
|
||||||
def cmd_dedupe(args):
|
def cmd_dedupe(args):
|
||||||
for d in find_duplicates():
|
for d in find_duplicates():
|
||||||
r = rmkey(d)
|
r = rmkey(d)
|
||||||
logging.debug(r)
|
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):
|
def cmd_show(args):
|
||||||
for k in get_keys():
|
for k in get_keys():
|
||||||
|
Reference in New Issue
Block a user