fixed debug logging command line parameter
This commit is contained in:
parent
454fc28561
commit
ab1e3433ef
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ requiredArguments.add_argument('-d', '--device', help='serial device for data (e
|
|||
args = parser.parse_args()
|
||||
|
||||
if args.debug: # switch to debug level
|
||||
logging.setLevel(logging.DEBUG)
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
|
||||
serial_port = serial.Serial(args.device, 115200, timeout=1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue