diff --git a/src/teams_ctrl.py b/src/teams_ctrl.py index 3760b60..83a27e5 100644 --- a/src/teams_ctrl.py +++ b/src/teams_ctrl.py @@ -304,12 +304,15 @@ if __name__ == "__main__": "-t", "--token", required=True, help="MS Teams client API token file" ) parser.add_argument("-p", "--port", required=True, help="Serial port") + parser.add_argument( + "--log", + choices=["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "NOTSET"], + default="WARNING", + help="Logging level", + ) args = parser.parse_args() with open(args.token) as tf: token = tf.read().strip() asyncio.run(amain()) - - # loop = asyncio.new_event_loop() - # asyncio.set_event_loop(loop)