fix: bump 'common' version to 0.1.9

This commit is contained in:
2026-04-17 11:21:48 +08:00
parent 875aa5e761
commit 8665a8dd1d
2 changed files with 12 additions and 6 deletions

View File

@@ -246,10 +246,15 @@ if __name__ == '__main__':
try:
logging.basicConfig(level=logging.INFO, format="[%(asctime)s] [%(levelname)s] [%(name)s] %(message)s", datefmt="%Y-%m-%d %H:%M")
logger = logging.getLogger()
logger.info('Initializing...')
level = logging.getLevelNamesMapping().get(args.log_level, 'INFO')
logger.setLevel(level)
jsonrpc2.run(logger)
logger.info('Initializing...')
history = jsonrpc2.History()
logger.addHandler(history)
opts = jsonrpc2.Options()
jsonrpc2.define('history', lambda: history.truncate())
jsonrpc2.run(opts)
logger.info('Creating automation instance')
opts = Options()