1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Enable status printing in CLI mode #8

This commit is contained in:
Bumsik Kim 2018-11-07 05:19:37 +09:00
parent ebbbf97cdf
commit 00388dcb0a
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
2 changed files with 17 additions and 12 deletions

View file

@ -70,7 +70,7 @@ def main() -> None:
parser.add_argument('--hidpi', action='store_true',
help='HiDPI mode. Width and height are doubled')
parser.add_argument('--log', type=str,
help='Python logging level, For example, --log=DEBUG.\n'
help='Python logging level, For example, --log=INFO.\n'
'Only used for reporting bugs and debugging')
# Add signal handler
def on_exit(self, signum=None, frame=None):
@ -177,7 +177,7 @@ def main_cli(args: argparse.Namespace):
sys.exit(1)
# By instantiating the backend, additional verifications of config
# file will be done.
backend = Backend()
backend = Backend(logger=print)
# Get settings
with open(CONFIG_PATH, 'r') as f:
config = json.load(f)