microsoft / knack

Knack - A Python command line interface framework
https://pypi.python.org/pypi/knack
MIT License
348 stars 95 forks source link

[Log] CLILogging.configure returns as early as possible #228

Closed jiasli closed 3 years ago

jiasli commented 3 years ago

Check whether CLILogging already has been configured and return as early as possible, otherwise, calls like

self.log_level = self._determine_log_level(args)

is totally unnecessary and is merely a waste of time.

yonzhan commented 3 years ago

Log