support OPENOCD_DEBUG_LEVEL environment setting