1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

Intelligent probing with warnings for fwflash.py (#3005)

* scripts: fwflash: intelligent probing with warnings
* scripts: fwflash: better texting

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2023-08-23 21:04:12 +03:00
committed by GitHub
parent b368660d48
commit 56b5b35236
2 changed files with 90 additions and 68 deletions

View File

@@ -15,10 +15,9 @@ class App:
# Application specific initialization
self.init()
def __call__(self, args=None, skip_logger_init=False):
def __call__(self, args=None):
self.args, self.other_args = self.parser.parse_known_args(args=args)
# configure log output
# if skip_logger_init:
self.log_level = logging.DEBUG if self.args.debug else logging.INFO
self.logger.setLevel(self.log_level)
if not self.logger.hasHandlers():