frontend/coretool: verbosity control

This commit is contained in:
Sebastien Bourdeauducq 2015-12-20 23:17:31 +08:00
parent 5769107936
commit 2ae63570dd

View File

@ -3,6 +3,7 @@
import argparse
import struct
from artiq.tools import verbosity_args, init_logger
from artiq.master.databases import DeviceDB
from artiq.master.worker_db import DeviceManager
from artiq.coredevice.analyzer import decode_dump, messages_to_vcd
@ -11,6 +12,8 @@ from artiq.coredevice.analyzer import decode_dump, messages_to_vcd
def get_argparser():
parser = argparse.ArgumentParser(description="ARTIQ core device "
"remote access tool")
verbosity_args(parser)
parser.add_argument("--device-db", default="device_db.pyon",
help="device database file (default: '%(default)s')")
@ -58,6 +61,7 @@ def get_argparser():
def main():
args = get_argparser().parse_args()
init_logger(args)
device_mgr = DeviceManager(DeviceDB(args.device_db))
try:
comm = device_mgr.get("comm")