Skip to content
Snippets Groups Projects
Commit de9ebfeb authored by ulif's avatar ulif
Browse files

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.
parent 5b7d3819
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment