From de9ebfeb9d267714bc76402a04ca9898236bcaf5 Mon Sep 17 00:00:00 2001 From: ulif <uli@gnufix.de> Date: Mon, 24 Apr 2017 13:30:42 +0200 Subject: [PATCH] Activate logging. Logging was available all the time but not yet activated. We now enable logging when the main script is executed. This makes the `verbose` commandline option functional. --- CHANGES.rst | 1 + diceware/__init__.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index f1739a7..c67d7f3 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 4122193..18f762c 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) -- GitLab