diff --git a/CHANGES.rst b/CHANGES.rst index f1739a7e1d73505ffd16a7aa6b1054dd33cf51a3..c67d7f345caf13aaf872283343a541c73c3ab39d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,6 +21,7 @@ Changes - Fixed #31, broken `realdice` source of randomness. `argparse` related bug, Bug was discovered and fixed by @LogosOfJ, thanks a lot! - Fixed #29. Tell about code prefix problem in README. +- Activated logging. Using `verbose` will result in additional output. 0.9 (2016-09-14) diff --git a/diceware/__init__.py b/diceware/__init__.py index 41221932a90635f6096472fcd766d4e8b723aeb0..18f762ce49de314666b7f49e8b23ff29c959d784 100644 --- a/diceware/__init__.py +++ b/diceware/__init__.py @@ -20,6 +20,7 @@ import pkg_resources import sys from random import SystemRandom from diceware.config import get_config_dict +from diceware.logger import configure from diceware.wordlist import ( WordList, get_wordlist_path, WORDLISTS_DIR, get_wordlist_names, ) @@ -204,6 +205,7 @@ def main(args=None): if args is None: args = sys.argv[1:] options = handle_options(args) + configure(options.verbose) if options.version: print_version() raise SystemExit(0)