Fix using the wrong logger

This commit is contained in:
TSR Berry 2023-09-05 22:19:25 +02:00
parent 1945b5145c
commit 226527c128
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -2,7 +2,7 @@ import argparse
import logging import logging
from ryujinx_mako import commands from ryujinx_mako import commands
from ryujinx_mako._const import SCRIPT_NAME, NAME from ryujinx_mako._const import SCRIPT_NAME
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog=SCRIPT_NAME, prog=SCRIPT_NAME,
@ -26,7 +26,7 @@ for subcommand in commands.SUBCOMMANDS:
def run(): def run():
logger = logging.getLogger(NAME) logger = logging.getLogger(SCRIPT_NAME)
logger.addHandler(logging.StreamHandler()) logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)