From 5fb31208c96381769c9e23eb2e2dc87a0f7c6eb3 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 16 Nov 2021 13:54:42 -0800 Subject: [PATCH] Add vlogging so we can get debug from imported modules. --- search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/search.py b/search.py index 96ff50d..952a186 100644 --- a/search.py +++ b/search.py @@ -16,8 +16,11 @@ from voussoirkit import pathclass from voussoirkit import pipeable from voussoirkit import safeprint from voussoirkit import spinal +from voussoirkit import vlogging from voussoirkit import winglob +log = vlogging.get_logger(__name__, 'search') + # Thanks georg # http://stackoverflow.com/a/13443424 STDIN_MODE = os.fstat(sys.stdin.fileno()).st_mode @@ -259,6 +262,7 @@ def search_argparse(args): print('You did not supply any search terms.') return 1 +@vlogging.main_decorator def main(argv): parser = argparse.ArgumentParser()