Add issue template

This commit is contained in:
Arun Prakash Jana 2017-05-22 12:38:35 +05:30
parent 7ee95f7f1e
commit 7b31c2c423
2 changed files with 24 additions and 8 deletions

16
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,16 @@
#### Bug reports
Before opening an issue, please try to reproduce on [the latest development version](https://github.com/jarun/Buku#installing-from-this-repository) first. The bug you noticed might have already been fixed.
If the issue can be reproduced on master, then please make sure you provide the following:
- Debug logs using the `-z` option;
- Details of operating system, Python version used, terminal emulator and shell;
- `locale` output, if relevant. It's a good idea to set your locale to UFT-8. Please refer to [Buku #131](https://github.com/jarun/Buku/issues/30).
If we need more information and there is no communication from the bug reporter within 7 days from the date of request, we will close the issue. If you have relevant information, resume discussion any time.
#### Feature requests
Please consider contributing the feature back to `Buku` yourself. Feel free to discuss. We are more than happy to help.
--- PLEASE DELETE THIS LINE AND EVERYTHING ABOVE ---

16
buku.py
View File

@ -2953,14 +2953,6 @@ POSITIONAL ARGUMENTS:
argparser.print_help(sys.stdout)
sys.exit(0)
# Set up debugging
if args.debug:
logger.setLevel(logging.DEBUG)
logdbg('Version %s', __version__)
else:
logging.disable(logging.WARNING)
urllib3.disable_warnings()
# Handle color output preference
if args.nc:
colorize = False
@ -2975,6 +2967,14 @@ POSITIONAL ARGUMENTS:
# Enable color in logs
setup_logger(logger)
# Set up debugging
if args.debug:
logger.setLevel(logging.DEBUG)
logdbg('Version %s', __version__)
else:
logging.disable(logging.WARNING)
urllib3.disable_warnings()
# Handle encrypt/decrypt options at top priority
if args.lock is not None:
BukuCrypt.encrypt_file(args.lock)