diff --git a/main.py b/main.py index 7d5285c2..5fc47a7d 100755 --- a/main.py +++ b/main.py @@ -40,8 +40,10 @@ def main(matrix, config_base): logger = logging.getLogger("mlbled") if config.debug: logger.setLevel(logging.DEBUG) + RGBMatrixDriver.logger.setLevel(logging.DEBUG) else: logger.setLevel(logging.WARNING) + RGBMatrixDriver.logger.setLevel(logging.INFO) # Print some basic info on startup debug.info("%s - v%s (%sx%s)", SCRIPT_NAME, SCRIPT_VERSION, matrix.width, matrix.height) diff --git a/utils.py b/utils.py index 8f75af2e..d385b2e1 100644 --- a/utils.py +++ b/utils.py @@ -14,7 +14,7 @@ def split_string(string, num_chars): return [(string[i : i + num_chars]).strip() for i in range(0, len(string), num_chars)] # noqa: E203 def scoreboard_args(): - sb_parser = argparse.ArgumentParser(add_help=False) + sb_parser = RGBMatrixArguments() sb_parser.add_argument( "--config", action="store", @@ -23,7 +23,7 @@ def scoreboard_args(): type=str, ) - return RGBMatrixArguments(parents=[sb_parser]).parse_args() + return sb_parser.parse_args() def deep_update(source, overrides): """Update a nested dictionary or similar mapping.